ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

CLI command to update password manually is not working

book

Article ID: 199421

calendar_today

Updated On:

Products

CA Privileged Access Manager (PAM) CA Privileged Access Manager - Cloakware Password Authority (PA) PAM SAFENET LUNA HSM CA Privileged Access Manager - Server Control (PAMSC)

Issue/Introduction

Hi Team,

Below command is not working as expected
./capam_command -n pam_host -u super cmdName=updateTargetAccountPassword TargetServer.hostName=ip_address TargetApplication.name=application_name TargetAccount.userName=pamadmin password=DE%kdp8& confirmPassword=DE%kdp8&.


 <CommandResult><cr.itemNumber>0</cr.itemNumber><cr.statusCode>401</cr.statusCode><cr.statusDescription>PAM-CM-0567: Failed to authenticate with the Password Authority service.</cr.statusDescription></CommandResult>


Looks like its taking password parameter for super's password.

Kindly assist

Environment

Release : 3.4

Component : PRIVILEGED ACCESS MANAGEMENT

Resolution

Here is a working example from PAM 3.4 version

./capam_command cspmHostName=pam34x01.net adminUserID=test adminPassword=Password01 cmdName=updateTargetAccountPassword \

"TargetServer.hostName=10.10.10.10" "TargetApplication.name=LABS-AD" "TargetAccount.userName=pamadmin3" \

"[email protected]" "[email protected]"

Abobe (\) is used to put the command over multiple lines if they are big.Please review this document and the TIP it has for more details -

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-privileged-access-management/privileged-access-manager/3-4/programming/credential-manager-remote-cli-and-java-api/use-the-credential-manager-cli/remote-cli-command-syntax.html

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-privileged-access-management/privileged-access-manager/3-4/programming/credential-manager-remote-cli-and-java-api/use-the-credential-manager-cli/remote-cli-command-syntax.html