Active Directory SSH キー ターゲット CLI 設定

capam401
このトピックには、Active Directory SSH キー ターゲット アプリケーションおよびターゲット アカウント、コマンド文字列の例を追加および更新するための CLI コマンドおよびパラメータが含まれています。
2
Active Directory SSH キー ターゲット コネクタ CLI パラメータ
Active Directory SSH キー ターゲット アプリケーションの追加および更新
CLI を使用して
Active Directory SSH キー ターゲット アプリケーションを追加
、コネクタを追加するには、addTargetApplication コマンドとそのパラメータを使用します。
CLI を使用して
Active Directory SSH キー ターゲット アプリケーションを更新
するには、updateTargetApplication コマンドとそのパラメータを使用します。
追加と更新の両方で、以下の追加パラメータが使用されます。
  • keyattribute
    : Active Directory で、公開鍵が格納される属性名。デフォルトの属性名は 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_"