Solved

The remote server returned an error: (401) Unauthorized. not able to authenticate

Posted on 2016-08-02
5
121 Views
Last Modified: 2016-08-14
Hi,
We are using custom solution that is using IIS regular web server.
I have certificate configured for https://website. it is binded to 443 and working.

Users need to authenticate to the web server using windows authentication https with cert. But I am getting 401 unauthorized error for some users but not for others. In particular users in source are not able to authenticate.
Web server is in the target. But some users from source successfully authenticate. Target users have no problem to authenticate

How do you troubleshoot this issue? Where to look to solve this quickly?

We tried clearing IE cookies, moving workstations to different OUs. The issue is random. Everything worked fine few days ago, and then smth happened.

So now users are continually prompted for creds when accessing webserver url and then authentication fails with 401. Also we saw this error in the event log.

They are not suppose to get prompted at all because the web site is in the Intranet zone.

Error in the event log

failed to set DefaultTargetDNS via GetSetting http call. Error:GetConfigSetting Http call failed - url: https://website/ActivationPortal/Settings/GetConfigSetting, urlParams: configGroup=DomainSettings&keyName=defaultTargetDNS, Error: The remote server returned an error: (401) Unauthorized.,    at System.Net.HttpWebRequest.GetResponse()
   at Msm.PreMigrationTestCommon.HttpHelper.SendHttpRequest(String method, String uri, String parameters, String userName, String domain, String password, String authType)
   at Msm.PreMigrationTestCommon.TestProcessor.GetConfigSetting(String migrationId, String configGroup, String keyName, String context)
0
Comment
Question by:creative555
  • 3
  • 2
5 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 41740537
The HTTP 401 error normally means that that the user-id/password is not valid.  

It appears the event log entry is from the end-users computer.  You need to look at the server.
0
 

Author Comment

by:creative555
ID: 41741220
thank you! The issue was resolved.
0
 

Author Comment

by:creative555
ID: 41741222
could it be the issue with DC? Where doesn't get creds from DC?
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 41741581
The 401 means that either the user-id/password is not valid, could not be validated, or is not authorized.

So, yes, if the server never got a response from the DC a 401 could be issues, but I would assume it they would be sitting there for awhile while IIS waits for a response.

If the issue is resolved, what was the problem.
0
 

Author Closing Comment

by:creative555
ID: 41755694
thank you so much! Sorry for the delay
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question