Re: IIS 6.0 Windows Authentication 401 Every Request
- From: David Wang <w3.4you@xxxxxxxxx>
- Date: 18 May 2007 01:36:33 -0700
On May 17, 10:12 am, cgambino <cgamb...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hello,
After reading a lot of articles, I was finally able to get Kerberos and NTLM
both working for an internal server.
I'm not sure if this is supposed to work this way, but it seems that on
every request to a page, it'll throw a 401, and then the next request
authorize the same page.
NTLM was doing this often, but not every page. Once I got Kerberos working,
it was doing it on every request.
Is there some more configuration I need to do? Is this the way that this is
intended to work? I assume that the ultimate goal is to have 1
authentication, and have that work for the rest of the session.
Any tips would be greatly appreciated!
Thanks
What you do depends on the type of 401.
- If it is 401.1, then it's probably more IIS configuration or network
issue
- If it is 401.2, then it's probably a client-side issue or network
issue
- If it is 401.3, 401.4, or 401.5, then the configuration is not with
IIS but at server-side application.
I assume that the ultimate goal is to have 1 authentication
and have that work for the rest of the session.
This assumption is mistaken. Once a resource requires authentication,
the client must prove authenticated access on every request in order
to succeed. It is up to the client to provide evidence, and the
evidence depends on the authentication protocol.
For Basic, Digest, Kerberos, and Cookie-based custom auth (such as
ASP.Net Forms auth), proof is to send over username:password in some
form (or abstracted as Kerberos ticket in Kerberos case) on every
request, and the client must remember to do that.
For NTLM, proof is continued anonymous request over the originally
authenticated connection, and the client and server must remember
that.
Tips are not really helpful because it really depends. You need to
provide more precise information on the type of 401, authentication
protocol used on the request, and whether authorization is passed on
the request (as expected) or connection maintained.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
.
- Follow-Ups:
- Re: IIS 6.0 Windows Authentication 401 Every Request
- From: cgambino
- Re: IIS 6.0 Windows Authentication 401 Every Request
- Prev by Date: Re: IIS Subauthentication Required
- Next by Date: Re: Many Connections from each Web Client
- Previous by thread: Re: IIS Subauthentication Required
- Next by thread: Re: IIS 6.0 Windows Authentication 401 Every Request
- Index(es):
Relevant Pages
|