CPM/SRS - winRc=258: 'The wait operation timed out.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=258 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Login with user [<domain>\<username>] on [\\<address>] failed. Error: 258.
- .log:
- Error in verifypass to user <domain>\<username> on domain \\<address>(\\<address>). Reason: The wait operation timed out. (winRc=258).
- pm.log:
- Error in verifypass to user <domain>\<username> on domain \\<address>(\\<address>). Reason: The wait operation timed out. (winRc=258).
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
This error can be generated due to multiple different reasons including, but not limited to:
- General network issues such as latency or timeouts.
- Active Directory replication issues.
- TCP port 88 (Kerberos) blocked between the CPM/SRS connector and target.
- Concurrent, conflicting network connections between the CPM/SRS connector and target.
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=258 Error Definition:
WAIT_TIMEOUT
258 (0x102)
The wait operation timed out.
Resolution
To resolve the various potential reasons for this error listed above:
Issue: General network issues such as latency or timeouts.
Resolution: Engage internal network team to troubleshoot as needed.
Issue: Active Directory replication issues.
Resolution: Engage Active Directory team to troubleshoot as needed.
Issue: TCP port 88 (Kerberos) blocked between the CPM/SRS connector and target.
Resolution: For domain accounts only, ensure that all required network ports are open:
-
-
- 53 -- DNS
- 88 -- Kerberos
- 139 -- SMB
- 445 -- SMB
- 49152 - 65535 -- TCP Dynamic Ports
-
Note: If Kerberos port 88 is not open, in addition to winRc=258 errors, you may also see winRc=64 (The specified network name is no longer available) errors.
For more details regarding network port requirements for CPM/SRS, refer to the documentation here: Network Port Requirements
Issue: Concurrent, conflicting network connections between the CPM/SRS connector and target.
Resolution: Windows internally manages network connections based on the user account and the specific credentials used to establish the connection. Windows does not allow multiple concurrent connections to the same network 'server' resource from the same 'client' machine with more than one set of credentials. The CPM/sRS plugin is a framework based on Microsoft's Windows API commands. The Windows API commands utilize the \\server\$IPC share (resource) on the target device to manage Windows accounts. If more than one connection attempt, utilizing differing credentials, is initiated between the CPM/SRS connector and target device, a winRc=258 error may occur.
To reduce the likelihood of this error occurring, it is not recommended to increase the 'MaxConcurrentConnections' platform parameter above the default value of 3.
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