CPM: MSSQL Account receives Login failed for user '<USERNAME> ' because the account is currently locked out. The system administrator can unlock it." during change/verify/reconciliation process
133
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:02 PM
Symptom
Verification/change process for an MSSQL account fails with the following error message:
ImmediateTask. Failure Description: Error when logon to User <USERNAME> on Server X.X.X.X. State: 42000 Native error: 18486 Message: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '<USERNAME> ' because the account is currently locked out. The system administrator can unlock it
Environment
11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM) CPM
MSSQL
Cause
The account is locked, so CPM is not able to logon using the main account to perform verification or change process. The reconciliation process is allowed to change password, it does not unlock the account.
Resolution
Edit Microsoft SQL Server Platform which is managing the MSSQL Main Account.
Go to Automatic Password Management > Additional Policy Settings > ReconcileCommand.
Replace the command sp_password @new='%NEWPASSWORD%', @loginame='%USER%' to alter login "%USER%" with PASSWORD = '%NEWPASSWORD%' UNLOCK
Additional Information
Details
SYMPTOM:
Verification/change process for an MSSQL account fails with the following error message:
"ImmediateTask. Failure Description: Error when logon to User <USERNAME> on Server X.X.X.X. State: 42000 Native error: 18486 Message: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '<USERNAME> ' because the account is currently locked out. The system administrator can unlock it."
PROBLEM:
The account is locked, so CPM is not able to logon using the main account to perform verification or change process. The reconciliation process is allowed to change password, it does not unlock the account.
SOLUTION:
- Edit Microsoft SQL Server Platform which is managing the MSSQL Main Account.
- Go to Automatic Password Management > Additional Policy Settings > ReconcileCommand.
- Replace the command sp_password @new='%NEWPASSWORD%', @loginame='%USER%' to alter login "%USER%" with PASSWORD = '%NEWPASSWORD%' UNLOCK