CPM/SRS - winRc=1219: 'Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1219 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Failed to logon to [\\<address>\ipc$] with user [<domain>\<username>]. Error: 1219
- .log:
- Error in logon to user <domain>\<username> on domain \\<address>(\\<address>).(winRc=1219) Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
- pm.log:
- Error in logon to user <domain>\<username> on domain \\<address>(\\<address>).(winRc=1219) Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
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.
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=1219 Error Definition:
ERROR_SESSION_CREDENTIAL_CONFLICT
1219 (0x4C3)
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
Resolution
Below are various methods (in no particular order) that can be utilized to resolve this issue:
Method 1: Release existing connections to the target. To do so, on the CPM/SRS connector, open Command Prompt as Administrator and run the following command:
Method 2: Restart the 'Workstation' Windows service on the target device. The "Workstation" service manages shared resource connections. Restarting the service will force a release of the network connection. However, note that there might be multiple dependent services, so if the target is "Production server", consider scheduling the restart during the non-business hours.
Method 3: Clear cached credentials associated with the target in the 'Stored User Names and Passwords' Windows applet. To do so, on the CPM/SRS connector, open Command Prompt as Administrator and run the following command:
Method 4: Clear cached credentials associated with the target in Windows Credential Manager. To do so, open Credential Manager, select Windows Credentials, and remove any credential related to the target device.
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
Windows networking only allows one connection to a server from a single user account. If you tried to access the server with two different user accounts from the same source server you will get the 1219 error.
To clear this. Do the following:
At an administrator command prompt on your CPM server and where <Target> is your Target server hostname (the server that you are changing the password on)
1. Run net use \\<Target> /delete
2. Copy and paste this command in the administrator command prompt and run:
rundll32.exe keymgr.dll,KRShowKeyMgr
And in the application's dialog box, remove all cached credentials associated with the Target or delete all of them to be safe.