Skip to main content
formatting
Source Link
Stephen Ostermiller
  • 99.4k
  • 18
  • 141
  • 364

IIS Not Accepting Active Directory Login Credentials

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspxset up exactly as suggested).

Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.UserDomain\This.User is given "Allow" access to the site. After entering the valid credentials for This.UserThis.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.UserThis.User (after attempting Domain\This.UserDomain\This.User and This.UserThis.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.UserThis.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Error Code: 0x80070005

Default Web Site security config:

<system.web>
<system.web>
    <identity impersonate="true" />
    <authentication mode="Windows" />
    <customErrors mode="Off" />
    <compilation debug="true" />
</system.web>

Sub web site security

 <authentication mode="Windows">
    <forms loginUrl="~/logon.aspx" timeout="2880" />
</authentication>
<authorization>
    <deny users="?" />
    <allow users="*" />
</authorization>

IIS Not Accepting Login Credentials

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Error Code: 0x80070005

Default Web Site security config:

<system.web>
    <identity impersonate="true" />
    <authentication mode="Windows" />
    <customErrors mode="Off" />
    <compilation debug="true" />
</system.web>

Sub web site security

 <authentication mode="Windows">
  <forms loginUrl="~/logon.aspx" timeout="2880" />
</authentication>
<authorization>
  <deny users="?" />
  <allow users="*" />
</authorization>

IIS Not Accepting Active Directory Login Credentials

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested.

Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Error Code: 0x80070005

Default Web Site security config:

<system.web>
    <identity impersonate="true" />
    <authentication mode="Windows" />
    <customErrors mode="Off" />
    <compilation debug="true" />
</system.web>

Sub web site security

<authentication mode="Windows">
    <forms loginUrl="~/logon.aspx" timeout="2880" />
</authentication>
<authorization>
    <deny users="?" />
    <allow users="*" />
</authorization>
Post Reopened by John Conde
Added web.config security code and error code from authentication rejection
Source Link

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Any thoughts as to what may be causing this? I can post code if needed.Error Code: 0x80070005

Default Web Site security config:

<system.web>
    <identity impersonate="true" />
    <authentication mode="Windows" />
    <customErrors mode="Off" />
    <compilation debug="true" />
</system.web>

Sub web site security

 <authentication mode="Windows">
  <forms loginUrl="~/logon.aspx" timeout="2880" />
</authentication>
<authorization>
  <deny users="?" />
  <allow users="*" />
</authorization>

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Any thoughts as to what may be causing this? I can post code if needed.

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Error Code: 0x80070005

Default Web Site security config:

<system.web>
    <identity impersonate="true" />
    <authentication mode="Windows" />
    <customErrors mode="Off" />
    <compilation debug="true" />
</system.web>

Sub web site security

 <authentication mode="Windows">
  <forms loginUrl="~/logon.aspx" timeout="2880" />
</authentication>
<authorization>
  <deny users="?" />
  <allow users="*" />
</authorization>
Post Closed as "Needs details or clarity" by Simon Hayter
added 26 characters in body
Source Link

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized usersecurity headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Any thoughts as to what may be causing this? I can post code if needed.

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized user page. Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Any thoughts as to what may be causing this? I can post code if needed.

I have an ASP.NET web form using Microsoft's boilerplate Active Directory login page, set up exactly as suggested. (See http://msdn.microsoft.com/en-us/library/ms180890%28v=vs.80%29.aspx) Windows Authentication is activated on the "Default Website" and "MyWebsite" levels, and Domain\This.User is given "Allow" access to the site. After entering the valid credentials for This.User on the web form, a popup window appears asking me to enter my credentials yet again. Despite entering valid credentials for This.User (after attempting Domain\This.User and This.User formats), it rejects the credentials and returns an unauthorized security headers page (error 401.2). Active Directory user This.User is valid, the IP address of the AD server has been verified and SPN's have been set up for the server.

Any thoughts as to what may be causing this? I can post code if needed.

Source Link
Loading