PAM-CM-0567: Failed to authenticate with Password Authority service when using capam_command CLI
search cancel

PAM-CM-0567: Failed to authenticate with Password Authority service when using capam_command CLI

book

Article ID: 199421

calendar_today

Updated On:

Products

CA Threat Analytics for PAM CA Privileged Access Manager - Server Control (PAMSC) CA Privileged Access Manager (PAM) CA Privileged Identity Management Endpoint (PIM)

Issue/Introduction

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>

Environment

Privileged Access Management (PAM)

Cause

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.

Resolution

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:

  • Multiline syntax: The backslash (\) allows you to break the command into multiple lines for readability.
  • Quotes: Ensure that parameters containing spaces or special characters (such as the target hostname or account name) are enclosed in double quotes.

 

Additional Information