CPM Reconcile fails on Linux with "Password has been already used" (Error 8028) despite random password generation

CPM Reconcile fails on Linux with "Password has been already used" (Error 8028) despite random password generation

109
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:58 PM


Symptom


When attempting to reconcile a Unix account, the CPM fails.

  • pm_error.log shows Error 8028 or a -1 timeout.
  • ThirdParty (TPC / PMTerminal) debug logs show the target OS prompting: Password has been already used.
  • When a Unix administrator performs a manual password change via SSH (passwd or sudo passwd) using a completely random password, the OS outputs anomalies before the success message. For example:

           New password:

           Retype new password:

           Password has been already used.

          passwd: password updated successfully

Because the CPM evaluates terminal output sequentially, it reads the "already used" warning, triggers a BadNewPassword regex match, and aborts the plugin execution before reading the "success" message.



Environment


14.2 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
  • Central Policy Manager (CPM)
  • Unix via SSH Platform
  • Target OS: Linux (SUSE, RHEL, CentOS, etc.)
  • TPC or PMTerminal


Cause


This is caused by an incorrect execution order or duplicate entries within the target Linux server's Pluggable Authentication Modules (PAM) configuration.

  1. False Positive Warning: If the module responsible for updating the password hash (pam_unix.so) is listed before the module responsible for checking password history (pam_pwhistory.so), the OS will commit the new password to the shadow file and then immediately evaluate the history against the newly saved hash. This creates the false positive "already used" warning.
  2. Prompt Looping: Duplicate entries for modules like pam_cracklib.so or pam_pwquality.so can cause the OS to ask for the password confirmation multiple times, which the CPM is not programmed to handle.


Resolution


The target Linux server's PAM configuration must be corrected by a UNIX administrator.

1. On the target Linux server, edit the primary password PAM configuration file (e.g., /etc/pam.d/common-password or /etc/pam.d/system-auth).

2. Remove or comment out any duplicate module entries (e.g., pam_cracklib.so).

3. Ensure that the pam_pwhistory.so module is listed above the pam_unix.so module so history is evaluated before the hash is saved.

Incorrect Order:

password required pam_unix.so sha512 shadow try_first_pass

password required pam_pwhistory.so remember=5

 

Correct Order:

password required pam_pwhistory.so remember=5

password required pam_unix.so sha512 shadow try_first_pass

 

4. Test the password change manually via SSH to confirm all warnings and duplicate prompts are suppressed. The output should cleanly read passwd: password updated successfully.

5. Trigger a Reconcile in the PVWA.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000017p5CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail