CPM/SRS - winRc=67: 'The network name cannot be found.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=67 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: 67.
- .log:
- Error in verifypass to user <domain>\<username> on domain \\<address>(\\<address>). Reason: The network name cannot be found. (winRc=67).
- pm.log:
- Error in verifypass to user <domain>\<username> on domain \\<address>(\\<address>). Reason: The network name cannot be found. (winRc=67).
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:
- Target device is offline or otherwise inaccessible across the network.
- Antivirus/firewall misconfigurations.
- DNS resolution issues.
- Server Message Block (SMB) is disabled on the target and/or CPM/SRS connector, or mismatched versions are enabled.
- Network Interface Card (NIC) issues, including outdated drivers and/or misconfigurations.
- 'File and Printer Sharing for Microsoft Networks' is disabled on the target.
- Leading/trailing whitespaces in account object properties in PVWA and/or general property misconfigurations.
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=67 Error Definition:
ERROR_BAD_NET_NAME
67 (0x43)
The network name cannot be found.
Resolution
To resolve the various potential reasons for this error listed above:
Issue: Target device is offline or otherwise inaccessible across the network.
Resolution: Ensure that the device is powered on, as well as connected to, and accessible, across the network.
Issue: Antivirus/firewall misconfigurations.
Resolution: Ensure that all antivirus applications on the target device are configured appropriately such that they do not hinder the network connection. Confirm that all required (by Microsoft) network ports are open:
-
-
-
- Domain Accounts:
- 53 -- DNS
- 88 -- Kerberos
- 139 -- SMB
- 445 -- SMB
- 49152 - 65535 -- TCP Dynamic Ports
- Local Accounts:
- 135 -- RPC/WMI (Required if 'VerifyMachineNameBeforeAction' platform parameter is set to ‘Yes’)
- 139 -- SMB
- 445 -- SMB
- 49152 - 65535 -- TCP Dynamic Ports
- Domain Accounts:
-
-
Note: For more details regarding network port requirements for CPM/SRS, refer to the documentation here: Network Port Requirements
Issue: DNS resolution issues.
Resolution: Verify that the device hostname on the target is correct. Flush the DNS cache by running the following two commands, in order, in an elevated command prompt session on the target:
-ipconfig /flushdns
-ipconfig /registerdns
Engage internal network team as needed.
Issue: Server Message Block (SMB) is disabled on the target and/or CPM/SRS connector, or mismatched versions are enabled.
Resolution: Ensure that at least one matching SMB protocol is enabled on the both the CPM/SRS connector and target device. Refer to the following KB for more information: CPM - What SMB protocol versions are supported by CPM?
Issue: Network Interface Card (NIC) issues on the target, including outdated drivers and/or misconfigurations.
Resolution: Ensure that the latest NIC driver is installed and confirm there are no misconfigured settings such as speed and/or duplex misconfigurations.
Issue: 'File and Printer Sharing for Microsoft Networks' is disabled on the target.
Resolution: Access the Properties of the relevant network adapter on the target device and enable 'File and Printer Sharing for Microsoft Networks'.
Issue: Leading/trailing whitespaces in account object properties in PVWA and/or general property misconfigurations.
Resolution: Copy/paste account object properties from PVWA into a text editor and check for leading and/or trailing whitespaces. Also check for basic misconfigurations such as a misspelled address and/or username.
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