CPM/SRS - winRc=1384: 'During a logon attempt, the user's security context accumulated too many security IDs.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1384 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Connecting with user [<domain>\<username>] on [\\<address>\ipc$] failed. Error: 1384
- .log:
- Error: Error in verifypass to user <domain>\<username> on domain <address>(\\<address>). Reason: During a logon attempt, the user's security context accumulated too many security IDs. (winRc=1384).
- pm.log:
- Error: Error in verifypass to user <domain>\<username> on domain <address>(\\<address>). Reason: During a logon attempt, the user's security context accumulated too many security IDs. (winRc=1384).
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 a user's total group membership in Active Directory exceeds 1,000 groups. This error occurs because Windows systems contain a limit that prevents a user's security access token from containing more than 1,000 security identifiers (SIDs). This means that when a user is being validated for access rights to establish a new session with a server, that user must not be a member of more than 1,000 groups in that server's domain.
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=1384 Error Definition:
ERROR_TOO_MANY_CONTEXT_IDS
1384 (0x568)
During a logon attempt, the user's security context accumulated too many security IDs.
Resolution
To resolve this issue, make sure that the user's total group membership in Active Directory does not exceed 1,000 groups.
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