Re: 401 responses with ntlm enabled

From: Andy Fish (ajfish_at_blueyonder.co.uk)
Date: 01/16/05


Date: Sun, 16 Jan 2005 15:51:22 -0000

Thanks David,

can I just clarify what you mean by "connection" in this case. do you mean
the actual tcp/ip socket connection between the 2 servers?

I thought HTTP was connectionless and would re-establish a new connection
for each request.

"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:Oaraypt%23EHA.1408@TK2MSFTNGP10.phx.gbl...
> The sequence you observe is normal NTLM authentication negotiation.
>
> What is not usual is that it should happen only once per authenticated
> user
> because the authentication is per-connection. If you see the same user
> repeatedly re-authenticating, it indicates that either:
> 1. the application is doing something that closes the connection, which
> forces reauthentication
> 2. any network device (like proxy servers) between the server and client
> is
> socket pooling and violating NTLM
> 3. if the client is running .Net Framework network classes, it could have
> this behavior and there is an "unsafe" workaround that essentially breaks
> authentication for performance.
> 4. Your server is configured to not have keep-alives
> 5. Something on your server is forcing the connection closed
> 6. the server has a bug
> 7. Etc
>
> Network Monitor trace of the re-authenticated request/responses in
> question
> need to be made in order to distinguish amongst all those possibilities.
> You
> can install this from Windows Server 2003 CD using Add/Remove
> Programs\Windows Components\Network Monitoring Tools
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> "Andy Fish" <ajfish@blueyonder.co.uk> wrote in message
> news:OV45R7i%23EHA.1392@tk2msftngp13.phx.gbl...
> Hi,
>
> I'm using iis6 and my web app is configured for integrated windows
> authentication. From a user perspective it looks fine, i.e. you log using
> your windows credentials and then you can use the site.
>
> However, looking at the IIS log, every HTTP request gets sent 3 times. the
> first 2 times, the cs-username field is blank and the response is 401; the
> third time the cs-username field is correct and the response is 200.
>
> I've turned on all the fields in the web log and for the first request,
> the
> sc-substatus is 2 and sc-win32 status is 2148074254; the second request
> has
> sc-substatus 1 and sc-win32-status 0.
>
> my app is asp.net but I get the same behaviour when requesting images, css
> and javascript includes, so I don't think that's relevant.
>
> TIA for any ideas
>
> Andy
>
>
>



Relevant Pages

  • understanding chkrootkit: sshd section
    ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
    (comp.os.linux.security)
  • understanding chkrootkit: sshd section
    ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
    (comp.security.unix)
  • Re: Anonymous Anonymity - Request For Comments
    ... > and request that you reply directly to my e-mail address. ... > for the entity wishing to preserve their anonymity. ... > the machine can perform as a Intermediary Server and / or as a Intermediary ... > The software then attempts connection to a Intermediary Server. ...
    (Bugtraq)
  • Re: Performance Issue with Runtime Image
    ... >> the client, closes the connection, then dies. ... request before even accepting the next incoming connection. ... The client program is unaffected so presumably the server is ...
    (comp.lang.smalltalk.dolphin)
  • Re: IIS 6.0 Windows Authentication 401 Every Request
    ... both working for an internal server. ... every request to a page, it'll throw a 401, and then the next request ... It is up to the client to provide evidence, ... the request or connection maintained. ...
    (microsoft.public.inetserver.iis.security)