CPM/SRS - winRc=1727: 'The remote procedure call failed and did not execute.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1727 error is returned. Depending on which log is viewed, the error may look like the below:
- Windows plugin .Debug.Log file:
- Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1727.
- Windows plugin .log file:
- Error in reconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: The remote procedure call failed and did not execute. (winRc=1727).
- Windows plugin pm.log file:
- Code: 2101, Error: Error in reconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: The remote procedure call failed and did not execute. (winRc=1727).
- Windows Services plugin .Debug.log file:
- Connecting to <address> with user <username> from domain <domain> - failed.
- Windows Services plugin .Debug.log file:
- Failed to open services manager on remote machine <address>.
- Failed to open namespace \root\Microsoft\SqlServer on <address> with user <username> at domain <domain>. Error: 0x800706bf Message: The remote procedure call failed and did not execute.
Also, to note, this error is very similar to winRc=1726: 'The remote procedure call failed'. These errors may occur simultaneously, and the cause and resolution steps are generally the same.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
CPM/SRS
Windows Target
Cause
This error could be caused by multiple issues including, but not limited to, the following:
- Remote Procedure Call (RPC) service not running on the target device.
- RPC port blocked on the target device (inbound), CPM/SRS connector (outbound), or both.
- TCP dynamic high ports blocked on the target device (inbound), CPM/SRS connector (outbound), or both.
- WAN optimizer/accelerator device manipulating RPC traffic between the CPM/SRS connector and target device.
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=1727 Error Definition:
RPC_S_CALL_FAILED_DNE
1727 (0x6BF)
The remote procedure call failed and did not execute.
Resolution
Steps to resolve the issues listed above:
Resolution: Open services.msc, locate the Remote Procedure Call service, and either select the service and click the 'play' button on the menu bar at the top, or right-click on the service and click 'Start'.
Issue: RPC port blocked on the target device (inbound), CPM/SRS connector (outbound), or both.
Resolution: Ensure that TCP port 135 is open, bidirectionally, on the CPM/SRS connectorand target device firewalls, as well as any firewall in between that the network traffic may traverse.
Issue: TCP dynamic high ports blocked on the target device (inbound), CPM/SRS connector (outbound), or both.
Resolution: Ensure that the TCP dynamic high ports are open, bidirectionally, on the CPM/SRS connector and target device firewalls, as well as any firewall in between that the network traffic may traverse. The TCP dynamic high ports consist of the 49152-65535 port range.
Note: If using Windows Defender Firewall, there is an inbound rule called 'Remote Service Management (RPC) that can be enabled on the target device to satisfy this requirement.
Issue: WAN optimizer/accelerator device manipulating RPC traffic between the CPM/SRS connector and target device.
Resolution: WAN optimizer/accelerator devices, such as products made by Riverbed Technology Inc., can manipulate network traffic in such a way that the RPC connection between the CPM/SRS connector and target device completely fails. Adjust the configuration of the WAN optimizer/accelerator device so that RPC network traffic between the CPM/SRS connector and target device is unaffected.
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