Solved

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

Posted on 2016-08-02
5
101 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

831 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