I'm trying to protect a subfolder in IIS 7.5 with windows authentication. I have put the following into my web.config\[code\]<location path="admin"><system.webServer> <security> <authentication> <windowsAuthentication enabled="true" /> </authentication> <authorization> <remove users="*" roles="" verbs="" /> <remove users="?" roles="" verbs="" /> <add accessType="Allow" users="*" /> <add accessType="Deny" users="?" /> </authorization> </security></system.webServer>\[/code\]When I try to use for example /admin/myform.aspx the authentication window pops up and I cannot authenticate, and eventually I get
\[code\]HTTP Error 401.1 - UnauthorizedYou do not have permission to view this directory or page using the credentials that you supplied.\[/code\]
I am providing valid domain name and password. I did check the security event log on the server and here is the error I get
\[code\]An account failed to log on.Subject: Security ID: NULL SID Account Name: - Account Domain: - Logon ID: 0x0Logon Type: 3Account For Which Logon Failed: Security ID: NULL SID Account Name: myaccount Account Domain: domainFailure Information: Failure Reason: An Error occured during Logon. Status: 0xc000018d Sub Status: 0x0Process Information: Caller Process ID: 0x0 Caller Process Name: -Network Information: Workstation Name: xxxxxxxxx Source Network Address: xx.xx.xx.xx Source Port: 57616Detailed Authentication Information: Logon Process: NtLmSsp Authentication Package: NTLM Transited Services: - Package Name (NTLM only): - Key Length: 0\[/code\]
Thank you.
\[code\]HTTP Error 401.1 - UnauthorizedYou do not have permission to view this directory or page using the credentials that you supplied.\[/code\]
I am providing valid domain name and password. I did check the security event log on the server and here is the error I get
\[code\]An account failed to log on.Subject: Security ID: NULL SID Account Name: - Account Domain: - Logon ID: 0x0Logon Type: 3Account For Which Logon Failed: Security ID: NULL SID Account Name: myaccount Account Domain: domainFailure Information: Failure Reason: An Error occured during Logon. Status: 0xc000018d Sub Status: 0x0Process Information: Caller Process ID: 0x0 Caller Process Name: -Network Information: Workstation Name: xxxxxxxxx Source Network Address: xx.xx.xx.xx Source Port: 57616Detailed Authentication Information: Logon Process: NtLmSsp Authentication Package: NTLM Transited Services: - Package Name (NTLM only): - Key Length: 0\[/code\]
Thank you.