Solved

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 66
Issue with  IP address/conflict 10 50
SCCM And Branchcache Server 1 35
Slow internet - due to unknown uploads 9 59
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Let’s list some of the technologies that enable smooth teleworking. 
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…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now