CPM - Password Change or Reconcile on Oracle DB fails when require password security is set
141
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:08 PM
Symptom
When trying to change, Reconcile or verify the password on the Orace servers customer is seeing the following error;
"Code: 2103, Error: Error when verifypass to User <username> on Server .
State: HY090 Native error: 0 Message: [Oracle][ODBC]Invalid string or buffer length.
The CPM is trying to verify this password because its status matches the following search criteria: ResetImmediately."
Environment
10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) Central Policy Manager (CPM) Oracle Plug-in
Cause
This seems to be caused by the Oracle DB server requiring password security, One of the features of this is that the first character in the password needs to be a letter.
We currently have an ER here - https://community.cyberark.com/s/article/Greater-flexibility-when-generating-passwords---improve-complexity-MAAY
Resolution
While not supported the following workaround may be attempted.
Add an alpha character to the ChangeCommand and ReconcileCommand properties just before the new password and the ConnectionCommand just before the logon password so that the password would always start with that alpha character, then the CPM would generate the rest of it.
The challenge would be that the DBAs would have to know to add that character to the beginning of the password if they ever retrieved the password manually.
The Character "j" is used in the below example but this could be any alpha based character as required by the Oracle Server.
IE: in Platform
ChangeCommand : alter user %USER% identified by "j%NEWPASSWORD%";
ReconcileCommand : alter user %USER% identified by "j%NEWPASSWORD%";
ConnectionCommand : Driver={Oracle in instantclient11_1};Dbq=//%ADDRESS%:%PORT%/%DATABASE%;Uid=%USER%;Pwd=j%LOGONPASSWORD%;
It might also interfere with PSM connectivity if used, but you may be able to modify the PSM component as below to account for this.
Then maybe on the PSM-SQLPlus and PSM-TOAD componets
TOAD : ClientApp : "C:\Quest Software\Toad for Oracle 11.5\Toad.exe" -c "{UserName}/j{Password}@{Address}[:{Port}][/{Database}] [{ConnectAs}]"
SQLPlus : "C:\oracle\instantclient\sqlplus.exe" "{UserName}/j{Password}@{Address}[:{Port}][/{Database}] [{ConnectAs}]"
Please note this is intended as a workaround, for a fully supported solution please vote on the ER above