When attempting to use the capam_command CLI to execute the updateTargetAccountPassword command, the request fails with the following authentication error: 0401PAM-CM-0567: Failed to authenticate with the Password Authority service
Example of the command line executed giving the error:
capam_command -n pam_host -u super cmdName=updateTargetAccountPassword TargetServer.hostName=ip_address TargetApplication.name=application_name TargetAccount.userName=<target_account> password=<password> confirmPassword=<password>
Privileged Access Management (PAM)
This often occurs because the command syntax is missing the required administrative credentials (adminUserID and adminPassword), causing the system to misinterpret the account password parameters.
The command syntax requires specific parameters to authenticate the request against the Password Authority service. If these are omitted or structured incorrectly, the service cannot validate the request.
To successfully update a target account password via the CLI, ensure the command includes the mandatory administrator credentials and correct syntax.
Use the following template for your command:
General Syntax: capam=<hostname> adminUserID=<user_name> adminPassword=<password> <command> [parameter1=value1 parameter2=value2 ...]
capam_command cspmHostName=<PAM_Host_Name> \
adminUserID=<Admin_User> \
adminPassword=<Admin_Password> \
cmdName=updateTargetAccountPassword \
"TargetServer.hostName=<Target_IP_or_Hostname>" \
"TargetApplication.name=<Application_Name>" \
"TargetAccount.userName=<Target_User>" \
"password=<New_Password>" \
"confirmPassword=<New_Password>"
Implementation Notes:
\) allows you to break the command into multiple lines for readability.