CPM-Forbidden characters validation of the PasswordForbiddenCharacters
225
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:08 PM
Symptom
Depending on the forbidden characters order, CPM may end up saying that forbidden chars are in use even though they are not.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Cause
Forbidden characters validation of the PasswordForbiddenCharacters setting in a Platform is done as a Regex and the '-' character is used for a range in Regex. This means if the setting contains the '-' character between two other characters, all characters between them will be considered as forbidden. For example: @()-| this will validate all characters between ) to |, which includes all the alphabet characters.
Resolution
Escape the - character with backslash. Example: Use \- in order to forbid the - character and not a range of characters.
As an example, this set will render the screenshot above when trying to manual set a password: '\/@".;{}()-|*>~!^#
As a solution, add the \ in front of the - (dash). New entry would be: '\/@".;{}()\-|*>~!^#