Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

401 - Unauthorized in IE7 only with windows authentication.

I've created an intranet site that uses windows authentication

In chrome I can access the site instantly, and in FF it requires Active Directory login. But with IE7 I'm getting the following error:

401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.

Im unsure as to why its okay in other browsers but not IE? Any help appreciated.

Thanks

like image 400
raklos Avatar asked Aug 25 '11 10:08

raklos


People also ask

How do you remove 401 unauthorized access is denied due to invalid credentials?

In the Authentication Methods dialog, enable either the Integrated Windows authentication box or Basic authentication (password is sent in clear text), and clear all other authentication options for Authentication access.

What does code 401 mean?

The HyperText Transfer Protocol (HTTP) 401 Unauthorized response status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.


1 Answers

Solution:

IE is using Kerberos and not falling back on NTLM like Chrome and Firefox. You must force NTLM authentication in IIS7.5 by following these steps:

  1. Select your site.
  2. Double click authentication.
  3. Select "Windows Authentication" (ensuring that it is enabled).
  4. Click "Providers..." in the right hand column.
  5. Select NTLM and click "Move Up".

Link: windows authentication not working in ie7

like image 182
aditya Avatar answered Oct 13 '22 17:10

aditya