Security Compliance
HTTP Status 401 error when testing the WSUS connection to Patch Manager
This article describes how to troubleshoot a connection issue between SolarWinds Patch Manager and the WSUS server. This issue generates an HTTP status 401 error when you test the connection between both components.
First published date
Last published date
Overview
When you configure and test the Microsoft® Windows® Server Update Services (WSUS) server connection in the SolarWinds Patch Manager Admin Console, the following error message displays:
Could not connect to server: WSUS. The request failed with HTTP status 401: Unauthorized. WSUSConnection::Unable to connect to the WSUS Server.
Product section
Cause
Resolution
Resolve the issue based on your WSUS configuration.
Note: See the Microsoft TechNet website for more information about troubleshooting 401.1 authentication problems (© 2018 Microsoft, available at https://technet.microsoft.com/en-gb/, obtained on March 15, 2018).
1. Patch Manager and WSUS are installed on separate servers
If the WSUS server is not configured on the SolarWinds Patch Manager server, perform the following steps to troubleshoot the connection and the error message:
- Verify that the user account displayed in the error message has administrator access to the WSUS server and did not change their password.
If the user updated the account password on the WSUS server, update the credential in the WSUS credential library. See Configure the WSUS Server (© 2017 Microsoft Corporation, available at http://technet.microsoft.com, obtained on December 4, 2017) for information about configuring WSUS.
- If you are using a DNS alias for the WSUS server, verify that SolarWinds Patch Manager is using the server name as the connection name.
- Log in to the SolarWinds Patch Manager Admin Console.
- In the Patch Manager menu, expand Enterprise and select Update Services.
- Click Add or Configure WSUS Server in the Actions pane.
- Verify that the Server Name and Connection Name fields contain the same value.
For example:
- Click Save to save your changes (if required).
- On the SolarWinds Patch Manager server, open the Local Security Policy editor in the Windows Server®operating system.
- Under Security Settings, expand Local Policies and select Security Options.
- Verify that the following policy is set to Disabled:
Network access: Do not allow storage of passwords and credentials for network authentication - Verify that the following policy is set to
ClassicorGuest only:
Network access: Sharing and security model for local accounts - Close the Local Security Policy editor.
- Open the SolarWinds Patch Manager Admin Console.
- In the Patch Manager menu, expand Enterprise and select Update Services.
- Click Add or Modify WSUS Server in the Actions pane.
- Click the Server Name drop-down menu and select the WSUS server.
For example,SPM-MGOM.
- Click Test Connection to verify the connection between SolarWinds Patch Manager and the WSUS server.
Connect Succeededdisplays in the Success window. -
Close the window.
Reset IIS
If you are running WSUS on Windows Server® 2012 and Patch Manager 2.1.5 on Windows Server 2016 and the above steps did not solve the problem, do the following:
- Reset IIS on the WSUS and Patch Manager servers.
- Open a command prompt as an administrator.
- Execute:
iisreset
- Activate and enable the WMI Adapter Service on the Remote WSUS server.
2. Patch Manager and WSUS are installed on the same server
In this configuration, you may encounter a loopback security check. This Microsoft security feature prevents applications from using a fully qualified domain name (FQDN) to access web applications hosted on the same server. Perform the following steps to specify the host name mapped to the loopback address.
Note: Back up the SolarWinds Patch Manager server before you edit the Windows Registry with Registry Editor.
- On the SolarWinds Patch Manager server, stop the Internet Information Services (IIS) Admin service.
- Open the Registry Editor.
- Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters - Set the
DisableStrictNameCheckingregistry entry to1.
See the Microsoft TechNet website for more information about connecting to an SMB share. - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 - Create a new Multi-String Value called
BackConnectionHostNames. - Right-click
BackConnectionHostNamesand click Modify. - In the Value data field, type the host name for the sites on the local computer, and then click OK.
- Close the Registry Editor.
- Restart the IIS Admin service.
If the issue is not resolved, complete the procedures in the previous section.
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment. You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.