CPM/SRS - winRc=1907: 'The user's password must be changed before signing in.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1907 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1907.
- .log:
- Note: If the CPM action is verify, you won't see this log because it was not generated.
- pm.log:
- Note: If the CPM action is verify, you won't see a failure entry in the log because there isn't one.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
This error is generated when the CPM/SRS plugin attempts to perform a verify action against an account, local or domain-based, that has the 'User must change password at next logon' flag enabled on the account.
NOTE: When the flag is enabled, a verify action will produce a winRc=1907 error. However, change and reconcile actions against the account produce different results. For more information, review this KB: How the PMWindows.dll plugin handles the outcome of various Verify action attempts
winRc stands for Windows Return Code. Windows Return Codes are generated by Windows systems. The return code shown in the CPM/SRS logs and PVWA UI is from the target Windows machine and not from CPM/SRS.
winRc=1907 Error Definition:
ERROR_PASSWORD_MUST_CHANGE
1907 (0x773)
The user's password must be changed before signing in.
Resolution
To resolve this issue:
- Local Account - Deselect the 'User must change password at next logon' checkbox for the account within the accounts' properties in Local Users and Groups (lusrmgr.msc) on the target system.
- Domain Account - Deselect the 'User must change password and next logon' checkbox under the account options for the account in Active Directory.
Resources:
How does CPM Manage Windows Accounts Passwords
Windows System Error Codes
Windows Network Management Error Codes
Windows Routing and Remote Access Error Codes
Windows Sockets Error Codes