CPM/SRS - winRc=2240: 'The user is not allowed to log on from this workstation.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=2240 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Password verification for user [<username>] on [\\<address>] failed. Error: 2240
- .log:
- Error in verifypass to <domain>\<username> on domain <address>(\\<address>). Reason: The user is not allowed to log on from this workstation. (winRc=2240).
- pm.log:
- Error in verifypass to <domain>\<username> on domain <address>(\\<address>). Reason: The user is not allowed to log on from this workstation. (winRc=2240).
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
Active Directory permission sets exist such that a domain account can be restricted from logging onto certain computers, for instance, domain controllers. This error is generated when an account does not have permissions to log onto a domain controller in order to change its own password, or reset another accounts password.
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=2240 Error Definition:
NERR_INVALIDWORKSTATION
2240 (0x8C0)
The user is not allowed to log on from this workstation.
Resolution
To resolve this issue, the hostname for the CPM server/SRS connector and the DNS name of the domain must be added to the user's list of allowed computers 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
Additional Information
Details
SYMPTOM:The following error is received during a password management operation (verification or change):
Code: 2101, Error: Error in verifypass to user "domain".com\"account" on domain "domain".com(\\"Domain Controller"). Reason: The user is not allowed to log on from this workstation. (winRc=2240).
PROBLEM:
Active Directory is capable of restricting which computers a domain account is allowed to log on to. The account is not permitted to log on to the CPM server and/or the domain controllers.
SOLUTION:
The hostname for the CPM server and the DNS name of the domain must be added to the user's list of allowed computers in Active Directory.