CPM-TPC Based plugin verification/rotation error referencing timeout and/or did not find any matching prompt on target using ksh

CPM-TPC Based plugin verification/rotation error referencing timeout and/or did not find any matching prompt on target using ksh

154
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:54 PM


Symptom


There are instances when attempting to rotate/verify *nix accounts using TPC based plugins, results in an error referencing timeout/did not find any matching prompt. 

 

This can be a result of the use of ksh on the target.  

 

Within the third-party debug logs, the issue can present itself by a timeout resulting from receiving a prompt that appears similar to the standard response, however upon review the standard prompt is returned within the logs displaying a duplicate, with the second instance ended by a number of ascii rendered backspace characters. 

 

Example:

         

This can appear within the Third-Party debug logs, even if a manual test connecting to the target from the CPM yields normal/expected results with a single standard prompt.                                                         

 



Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

This often occurs on *nix targets using ksh version 93u+m/1.0.6 (2023-06-13)

 



Cause


To confirm whether the plugin being used is based on TPC, within the PVWA navigate to Administration > Platform Management > Select the platform used by the account in question > Select ... > Edit > Automatic Password Management > CPM Plug-in > ExeName

 

TPC-based plugins will have an ExeName of 'CyberArk.TPC.exe'

 

While ksh is not a supported shell for TPC-based plug-ins, the older version can often work. However, tests of the 93u+m/1.0.6 (2023-06-13) version have determined that version 93u+m/1.0.6 (2023-06-13) produces errors due to unexpected shell behavior. 

 

*Nix flavor and version can be determined by running the following command on the target... 
cat /etc/system-release OR uname -a

 

The following command can determine what shell is being used on the target...
ps -p $$

 

If ksh is being used on the target, the following command can be used to determine the specific ksh version…
ksh --version



Resolution


Workaround:

Within the UnixPrompts.ini file used by the platform in question, add the following entry to the end of the standard prompt line... 

 

|.*[\$#>%\]][ \t\b]*$

 

This prompt allows for the unexpected tabs and or backspace characters that ksh returns.  

 

*Please note that making changes to the prompts file is not officially supported

 

When conducting future upgrades of the CPM, make sure to back up the entire bin folder to ensure that to any customizations you make to this file remain accessible to you.

 

**Please note that Bash is the only SUPPORTED shell for TPC Based plugins.  While the above workaround may work, if a plugin that supports ksh is required, a custom plugin MUST be requested.  

 

Additionally, several enhancement requests exist requesting support of ksh for RHEL 9+ targets... 



Actions
  • Print
  • Copy Link

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