CPM/SRS - winRc=86: 'The specified network password is not correct.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=86 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Changing password for user [<domain>\<username>] on [\\<address>\ipc$] failed. Error: 86
- .log:
- Error in changepass to user <domain>\<username> on domain \\<address>(\\<address>).(winRc=86) The specified network password is not correct.
- pm.log:
- Error in changepass to user <domain>\<username> on domain \\<address>(\\<address>).(winRc=86) The specified network password is not correct.
Environment
Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
CPM/SRS
Windows Target
Cause
This error is caused by the sAMAccountName attribute (User logon name (pre-Windows 2000)) in Active Directory being different than the Username property of the account object in Cyberark. The CPM/SRS plugin uses Windows API commands to manage accounts Windows accounts. For backwards-compatibility reasons, the API commands used for managing Windows accounts use the sAMAccountName attribute, not the userPrincipalName (User logon name) attribute. Therefore, if the Username property of the account object in Idira matches the userPrincipalName attribute in Active Directory, but the userPrincipalName attribute does not the sAMAccountName attribute, the Windows API command may return an error.
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=86 Error Definition:
ERROR_INVALID_PASSWORD
86 (0x56)
The specified network password is not correct.
Resolution
To resolve this issue, ensure that the Username property of the account object in Idira matches the userPrincipalName attribute of 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