CPM Unix Plug-in Fails on Linux Targets with Global Non-English Locales (e.g., LC_ALL Overrides)

CPM Unix Plug-in Fails on Linux Targets with Global Non-English Locales (e.g., LC_ALL Overrides)

133
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 15:51 PM


Symptom


When attempting to verify or change a password on a Unix/Linux target, the CPM fails.


  • Log Symptoms: The ThirdPartyExecution debug logs show a timeout or state "Did not find any matching prompt" after sending the passwd command, often followed by unreadable or non-English characters in the log output.
  • Manual Testing Symptoms: If an administrator attempts to manually run the command exactly as it appears in the debug log (e.g., passwd username\r), the system returns a user-not-found error (e.g., user 'usernamer' does not exist).


Environment


14.6 Privilege Cloud Central Policy Manager (CPM)
  • Central Policy Manager (CPM) Unix Plug-in
  • Privilege Cloud / Idira PAM
  • Linux/Ubuntu target servers configured with non-English default languages.




Cause


  1. Locale/Prompt Parsing: The CPM Unix plug-in relies on regex to parse standard English prompts (e.g., New password:). If a target server has the LC_ALL environment variable set to a non-English language (e.g., ko_KR.UTF-8), it rigidly overrides all other language settings. Even if the CPM passes LANG=en_US.UTF8 during the session, the server will still return non-English prompts, causing the CPM regex to fail and time out.
  2. Manual Test Syntax: The \r (backslash r) seen in CPM debug logs represents a carriage return (the "Enter" key). When typed manually into a bash terminal, the backslash acts as an escape character, appending the r to the username and causing a false "user does not exist" error.




Resolution


To resolve the parsing issue without changing the global language settings of the target server, force the English locale specifically for the target account managed by the CPM:


  1. Log into the target server using the account managed by the CPM.
  2. Edit the user's bash profile (e.g., nano ~/.bashrc).
  3. Add the following line to the bottom of the file: export LC_ALL=en_US.UTF-8
  4. Save and exit.
  5. Trigger a Verify or Change task from the CPM to confirm the plug-in can now read the English prompts.


Note for Manual Testing: When testing commands manually via PuTTY or SSH, omit the \r (backslash r) shown in the debug logs and simply press the Enter key.




Actions
  • Print
  • Copy Link

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