CA PAM: CLI command with special character password

Document ID : KB000103755
Last Modified Date : 29/06/2018
Show Technical Document Details
Introduction:
If the password includes special characters in the CLI command, it’s better to encode it (base64) and use syntax “…TargetAccount.password='<base64string>' passwordIsBase64Encoded=true …”

For example, password “Password01!” should be TargetAccount.password='UGFzc3dvcmQwMSE=' passwordIsBase64Encoded=true
Instructions:
To encode base64 (On Linux machine);
# echo -n 'Password01!' | base64
UGFzc3dvcmQwMSE=
 
[Credential Manager CLI Commands parameters]
https://docops.ca.com/ca-privileged-access-manager/3-2/EN/programming/credential-manager-remote-cli-and-java-api/credential-manager-cli-commands/addtargetaccount/

passwordIsBase64Encoded

A flag when true indicates that the specified password has been Base64-encoded and should be first decoded before being stored.

RequiredDefault ValueValid Values
no.falsetrue|false

Example)
# ./capam_command capam=<capamServer> adminUserID=admin cmdName=addTargetAccount TargetAccount.userName=<TargetAccount> TargetServer.hostName=<myhostname.mydomain.com> TargetApplication.name=<myApplication> TargetAccount.password=UGFzc3dvcmQwMSE= passwordIsBase64Encoded=true