Integrated Windows Authentication fails

Hi,

I'm encountering a problem which is quite 'mysterious' to me.

Scenario:
- Windows XP Pro SP2 with IIS 5.1, acting as both server and client
- a virtual directory /tests/secured/ with Directory Security set to
"Integrated Windows Authentication" (IWA) (no other options are
enabled)

In IE6 (SP2), when I surf to http://localhost/tests/secured/ , I end up
with the following error: "Cannot find server or DNS error"

If I allow anonymous access, or choose basic authentication instead of
IWA, I _can_ visit the URL without problems.

More info about the configuration:
- The computer is part of a domain
- The domain controller is a small business server (SBS), which also
runs an ISA server
- The computer runs Microsoft AntiSpyware and the ISA Firewall Client
- The problem also occurs on other computers in the network
- In the filesystem, Everyone has access to the tests/secured directory


Using the wfetch tool, I simulated a request. It looks like the NTLM
sequence got interruped with Access Denied. The user names and
passwords I tried were correct, however (I tried both domain
users/local users). The output from wfetch is below:

--------------------------------------------

started....
WWWConnect::Connect("localhost","80")\n
IP = "127.0.0.1:80"\n
source port: 4693\r\n
SEC_I_CONTINUE_NEEDED - InitializeSecurityContext\n
REQUEST: **************\n
GET /tests/secured/test.txt HTTP/1.1\r\n
Host: localhost\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Authorization: NTLM
TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 401 Access Denied\r\n
Server: Microsoft-IIS/5.1\r\n
Date: Tue, 22 Nov 2005 14:14:50 GMT\r\n
WWW-Authenticate: NTLM
TlRMTVNTUAACAAAAEAAQADgAAAAVgoniRmWYnG/R+VoAAAAAAAAAAJQAlABI AAAABQEoCgAAAA9TAEsAWQBMAEkATgBFADIAAgAQAFMASwBZAEwASQBOAEUA MgABAA4A
VwBPAFUAVABFAFIAMgAEABoAcwBrAHkAbABpAG4AZQAuAGwAbwBjAGEAbAAD ACoAVwBvAHUAdABlAHIAMgAuAHMAawB5AGwAaQBuAGUALgBsAG8AYwBhAGwA BQAaAHMAawB5AGwAaQBuAGUALgBsAG8
AYwBhAGwAAAAAAA==\r\n
Connection: close\r\n
Content-Length: 24\r\n
Content-Type: text/html\r\n
\r\n
SEC_E_OK - InitializeSecurityContext\n
Error: Access is Denied.
WWWConnect::Close("localhost","80")\n
closed source port: 4693\r\n
cannot send data, because connection is closed
finished.

--------------------------------------------

The "Error: Access is Denied." string is the body of the server
response.

Any ideas what could be wrong in my configuration or why IE displays
the "Cannot find server or DNS error" error instead of "access denied"?

Thanks,
Wouter
Wouter Demuynck [ Di, 22 November 2005 15:40 ] [ ID #1069058 ]

Re: Integrated Windows Authentication fails

microsoft has a utility called authdiag, i suggest you use it. sounds like
your users dont have the correct access rights



"Wouter Demuynck" <dekarma [at] gmail.com> wrote in message
news:1132670451.019687.177530 [at] g14g2000cwa.googlegroups.com.. .
> Hi,
>
> I'm encountering a problem which is quite 'mysterious' to me.
>
> Scenario:
> - Windows XP Pro SP2 with IIS 5.1, acting as both server and client
> - a virtual directory /tests/secured/ with Directory Security set to
> "Integrated Windows Authentication" (IWA) (no other options are
> enabled)
>
> In IE6 (SP2), when I surf to http://localhost/tests/secured/ , I end up
> with the following error: "Cannot find server or DNS error"
>
> If I allow anonymous access, or choose basic authentication instead of
> IWA, I _can_ visit the URL without problems.
>
> More info about the configuration:
> - The computer is part of a domain
> - The domain controller is a small business server (SBS), which also
> runs an ISA server
> - The computer runs Microsoft AntiSpyware and the ISA Firewall Client
> - The problem also occurs on other computers in the network
> - In the filesystem, Everyone has access to the tests/secured directory
>
>
> Using the wfetch tool, I simulated a request. It looks like the NTLM
> sequence got interruped with Access Denied. The user names and
> passwords I tried were correct, however (I tried both domain
> users/local users). The output from wfetch is below:
>
> --------------------------------------------
>
> started....
> WWWConnect::Connect("localhost","80")\n
> IP = "127.0.0.1:80"\n
> source port: 4693\r\n
> SEC_I_CONTINUE_NEEDED - InitializeSecurityContext\n
> REQUEST: **************\n
> GET /tests/secured/test.txt HTTP/1.1\r\n
> Host: localhost\r\n
> Accept: */*\r\n
> Connection: Keep-Alive\r\n
> Authorization: NTLM
> TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==\r\n
> \r\n
> RESPONSE: **************\n
> HTTP/1.1 401 Access Denied\r\n
> Server: Microsoft-IIS/5.1\r\n
> Date: Tue, 22 Nov 2005 14:14:50 GMT\r\n
> WWW-Authenticate: NTLM
> TlRMTVNTUAACAAAAEAAQADgAAAAVgoniRmWYnG/R+VoAAAAAAAAAAJQAlABI AAAABQEoCgAAAA9TAEsAWQBMAEkATgBFADIAAgAQAFMASwBZAEwASQBOAEUA MgABAA4A
> VwBPAFUAVABFAFIAMgAEABoAcwBrAHkAbABpAG4AZQAuAGwAbwBjAGEAbAAD ACoAVwBvAHUAdABlAHIAMgAuAHMAawB5AGwAaQBuAGUALgBsAG8AYwBhAGwA BQAaAHMAawB5AGwAaQBuAGUALgBsAG8
> AYwBhAGwAAAAAAA==\r\n
> Connection: close\r\n
> Content-Length: 24\r\n
> Content-Type: text/html\r\n
> \r\n
> SEC_E_OK - InitializeSecurityContext\n
> Error: Access is Denied.
> WWWConnect::Close("localhost","80")\n
> closed source port: 4693\r\n
> cannot send data, because connection is closed
> finished.
>
> --------------------------------------------
>
> The "Error: Access is Denied." string is the body of the server
> response.
>
> Any ideas what could be wrong in my configuration or why IE displays
> the "Cannot find server or DNS error" error instead of "access denied"?
>
> Thanks,
> Wouter
>
Consultant [ Di, 22 November 2005 17:35 ] [ ID #1069062 ]

Re: Integrated Windows Authentication fails

Consultant wrote:
> microsoft has a utility called authdiag, i suggest you use it. sounds like
> your users dont have the correct access rights

Thanks for the hint!

AuthDiag told me the problem right away: "NTLM requires KeepAlive
connections", which makes sense.

IIS indeed had KeepAlives disabled.

Wouter
Wouter Demuynck [ Mi, 23 November 2005 08:19 ] [ ID #1070678 ]
Webserver » microsoft.public.inetserver.iis.security » Integrated Windows Authentication fails

Vorheriges Thema: unable to open site with frontpage
Nächstes Thema: IIS SSL Encryption handshake information