Solved

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

Posted on 2016-08-02
5
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month3 days, 17 hours left to enroll

630 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