CPM/SRS - winRc=1311: 'There are currently no logon servers available to service the logon request.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1311 error is returned. Depending on which log is viewed, the error may look like the below:
- .Debug.Log:
- Logon with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1311.
- .log:
- Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: There are currently no logon servers available to service the logon request. (winRc=1311).
- pm.log:
- Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: There are currently no logon servers available to service the logon request. (winRc=1311).
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:
- DNS resolution issues in the environment.
- Trust relationship failure between the target device and primary domain.
- One or more required network ports not being open.
Note: This error may also present itself with the following message: 'Reason: Can't obtain windows error.'
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=1311 Error Definition:
ERROR_NO_LOGON_SERVERS
1311 (0x51F)
There are currently no logon servers available to service the logon request.
Resolution
Steps to resolve the issues listed above:
Resolution: As a test, attempt to manage the account with the address formatted in other ways. For example, if the address is listed as hostname, try using FQDN, or IP. Also check to see what the DisableAddressResolving parameter is set to on the platform.
If the CPM/SRS connector is joined to domain.fqdn, for example, it will (by default, can be changed) attempt to append the domain suffix of its joined domain to the short name to attempt resolution. (IE: dc1.domain.fqdn) which of course will not work because the DC is in a different domain. To resolve this issue:
- Add the remote domain suffixes to the DNS Suffix Search list on the network interface of the CPM/SRS connector so it will attempt to append those domains as well for resolution.
- IE (Open the Properties for the network adapter)
- Internet Protocol Version 4 (TCP/IPv4) -> Properties
- Advanced
- DNS Tab
- "Append these DNS suffixes (in order):"
- Add suffixes of the remote domains
- IE (Open the Properties for the network adapter)
- Enable some form of shortname resolution (IE WINS, GlobalNamesZone, etc.)
Resolution: Remove the device from the domain, and then reconnect it. To do so:
- Use a local administrator account to log on to the computer.
- Click Start, type in sysdm.cpl, and click Enter.
- On the Computer Name tab, click Change.
- Under the 'Member of' heading, select Workgroup, type a workgroup name, and then click OK.
- When you are prompted to restart the computer, click OK.
- Log back in with the local administrator account and open System Properties via the same process as in step 2 above.
- On the Computer Name tab, click Change again.
- Under the Member of heading, select Domain, and then type the domain name.
- Click OK, and then type the credentials of the user who has permissions in the domain.
- When you are prompted to restart the computer, select OK.
Issue: One or more required network ports not being open.
Resolution: Review the plugin documentation regarding required network ports and ensure that they are opened as needed.
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