CPM - Multiple Retype new password prompts
133
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 12:57 PM
Symptom
When CPM performs a change/reconcile task to a Linux account, it fails with an invalid prompt error.
"Did not find any matching prompt for 'Retype new password: '"
When connecting manually via Putty to the target to change the account password, the target prompts for the current password and then prompts for the new password multiple times before it is accepted.
Environment
10.9;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;14.0;14.2;14.4 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Component: Central Policy Manager (CPM)
Functional Area: Unix Plug-in
Cause
Target has been configured to prompt for VERIFY NEW password for more then 1 times as part the hardening procedure in their organisation.
The current Unix process file caters to the following scenario:
ChangePassNewPass, VerifyNewPassword, ChangePassVerifyNewPass
Followed by
ChangePassVerifyNewPass, BadNewPassword, FAILInvalidNewPassword2
ChangePassVerifyNewPass, PasswdSuccessfullyChanged,logout
ChangePassVerifyNewPass, StandardPrompt, logout
Thus after it enter the password again for the prompt 'VerifyNewPassword' which in this case is Retype new UNIX password after this prompt, the plugin expects to see 'tokens updated successfully'.
So in the console it should be like this:
New UNIX password:
Retype new UNIX password:
all authentication tokens updated successfully
However the target prompts for 'Retype new UNIX password:' again, which results in a failure of the Change task
Resolution
Update the process file as follows -
ChangePassNewPass, BadNewPassword, FAILInvalidNewPassword1
ChangePassNewPass, VerifyNewPassword, ChangePassVerifyNewPass
ChangePassVerifyNewPass, VerifyNewPassword, ChangePassVerifyNewPass << Add this new line
ChangePassVerifyNewPass, BadNewPassword, FAILInvalidNewPassword2
ChangePassVerifyNewPass, PasswdSuccessfullyChanged,logout
ChangePassVerifyNewPass, StandardPrompt, logout
Make a duplicate of the process and prompts file before making the above change. And update the platform policy. Then restart the CPM for the policy to take effect.
Once complete, test the password change again and review the logs.