CPM/SRS - winRc=50: 'The request is not supported.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=50 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 50.
- .log:
- Error in prereconcilepass to user <domain>\<username> on domain \\<address>(\\<address>). Reason: The request is not supported. (winRc=50).
- pm.log:
- Error in prereconcilepass to user <domain>\<username> on domain \\<address>(\\<address>). Reason: The request is not supported. (winRc=50).
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
The CPM/SRS plugin is attempting to perform the password reset on a Read Only Domain Controller (RODC). This happens if the CPM/SRS connector is in an Active Directory site where an RODC is targeted based on a least-cost calculation when GetDCName (the DC Locator Process) is issued.
This will occur if:
-The RODC is in the same AD site as the CPM/SRS connector and there are no other writable domain controllers.
-The RODC is in the same AD site as the CPM/SRS connector and there are other writable domain controllers of the same priority.
-The CPM/SRS connector is in a site that has no domain controllers, but the site with the least cost from the CPM/SRS connector site has an RODC with one of the scenarios mentioned above.
In the scenarios above, the RODC will always, or occasionally based on round robin distribution, be used by the CPM/SRS connector for the password reset. In this case, the password change is not supported since the DC is read-only.
winRc stands for Windows Return Code. Windows Return Codes are generated by Windows systems. The return code shown in the CPM logs and PVWA UI is from the target Windows machine and not from CPM/SRS.
winRc=50 Error Definition:
ERROR_NOT_SUPPORTED
50 (0x32)
The request is not supported.
Resolution
The workaround for this issue is to configure AD so that the RODC is not selected by the CPM server/SRS connector. The two methods of doing so involve increasing the site cost and/or decreasing the DC priority.
1) Higher Site Cost:
Place the RODC in a different Active Directory site where the cost to reach that site is higher than the cost to reach writable DCs in the same site or writable DCs in a different site from the CPM that has a lower cost.
2) Defined DC Priority:
Set a lower priority for the RODC by specifying a higher number than that of the writable DCs for LdapSrvPriority. This will cause the writable DCs to be preferred over the RODC. You do this by specifying the LdapSrvPriority parameter for the NetLogon service on the RODC. For more information on this parameter, see this article: LdapSrvPriority
Once changes are made, reboot the CPM server/SRS connector to pickup the new domain settings.
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
SYMPTOM2) Defined DC PriorityPlace the RODC in a different Active Directory Site where the cost to reach that site is higher than the cost to reach Writable DCs in the same site or Writable DCs in a different site from the CPM that has a lower cost.
Once changes are made, reboot the CPM server to pickup the new domain settings.If you wish to leave the RODC in the same site as the Writable Domain Controllers, set a lower Priority for the RODC by specifying a higher number than that of the Writable DCs for LdapSrvPriority. This will cause the Writable DCs to be preferred over the RODC.You do this by specifying the LdapSrvPriority parameter for the NetLogon service on the RODC. For more information on this parameter see: https://technet.microsoft.com/en-us/library/cc957290.aspx