Active Directory SSH キー ターゲット CLI 設定
Active Directory SSH キー ターゲット アプリケーションおよびターゲット アカウントを追加および更新するために CLI コマンドおよびパラメータを使用する方法について説明します。
capam401
このトピックには、Active Directory SSH キー ターゲット アプリケーションおよびターゲット アカウント、コマンド文字列の例を追加および更新するための CLI コマンドおよびパラメータが含まれています。
Active Directory SSH キー ターゲット コネクタ CLI パラメータ
Active Directory SSH キー ターゲット アプリケーションの追加および更新
CLI を使用して
Active Directory SSH キー ターゲット アプリケーションを追加
、コネクタを追加するには、addTargetApplication コマンドとそのパラメータを使用します。 CLI を使用して
Active Directory SSH キー ターゲット アプリケーションを更新
するには、updateTargetApplication コマンドとそのパラメータを使用します。追加および更新の両操作で
keyattribute
パラメータを使用して、公開キーを格納する属性名を指定します。デフォルトの属性名は sshPublicKeys
です。Active Directory SSH キー ターゲット アカウントの追加または更新
CLI を使用して Active Directory SSH キー ターゲット アカウントを追加するには、
addTargetAccount
コマンドとそのパラメータを使用します。 CLI を使用して Active Directory SSH キー ターゲット アカウントを更新するには、
updateTargetAccount
コマンドとそのパラメータを使用します。以下のパラメータを使用することもできます。
- anotherAccount: PAM Active Directory 管理者ターゲット アカウントのアカウント ID。これは、Active Directory への接続とkeyattributeパラメータの更新に使用される、Active Directory での管理者アカウントです。
- passwordViewPolicyId: ターゲット アカウントに割り当てられた PAM パスワード表示ポリシーの ID。
Active Directory SSH キー CLI の例
Active Directory SSH キー ターゲット アプリケーションを追加する CLI
capam_command capam=capamServer adminUserID=admin cmdName=addTargetApplication TargetServer.hostName=myhostname.mydomain.com TargetApplication.name=ActiveDirectorySSHKeyApp TargetApplication.type=activeDirectorySshKey Attribute.keyattribute="sshPublicKeys" Attribute.descriptor1="sample"
Active Directory SSH キー ターゲット アプリケーションを更新する CLI
capam_command capam=capamServer adminUserID=admin cmdName=updateTargetApplication TargetServer.ID=7001 TargetApplication.name=adSSHkey TargetApplication.type=activeDirectorySshKey TargetApplication.ID=11001 Attribute.keyattribute="sshPublicKeys" Attribute.descriptor1="updated"
Active Directory SSH キー ターゲット アカウントを追加する CLI
capam_command.bat capam=capamServer adminUserId=admin cmdName=addTargetAccount TargetServer.hostName=myhostname.mydomain.com TargetApplication.ID=9001 TargetAccount.userName=johnSmith TargetAccount.passwordViewPolicyId=1000 TargetAccount.privileged=true TargetAccount.synchronize=true Attribute.anotherAccount=34001 Attribute.protocol=SSH2_PUBLIC_KEY_AUTH TargetAccount.password="_generate_pass_"
Active Directory SSH キー ターゲット アカウントを更新する CLI
capam_command capam=capamServer adminUserID=admin cmdName=updateTargetAccount TargetAccount.ID=49001 TargetServer.hostName=myhostname.mydomain.com TargetApplication.ID=11001 TargetAccount.userName=johnSmith TargetAccount.passwordViewPolicyId=1000 TargetAccount.privileged=true TargetAccount.synchronize=true Attribute.anotherAccount=34001 Attribute.protocol=SSH2_PUBLIC_KEY_AUTH TargetAccount.password="_generate_pass_"