Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Debugging IIS Authentication

Posted on 2008-10-20
3
Medium Priority
?
1,147 Views
Last Modified: 2012-05-05
Hello,

I have a new installation of Win 2003 with IIS 6. I have setup a site to use Integrated Windows Authentication in the same way that I have on all of our previous servers. I have turned off anonymous access, and have ensured that the users i want to access the website have the relevant permissions on the home directory of the website.

Below are the events:

- If i am logged onto the server and run the Auth Diagnostics tool and supply my credentials a status of 200/Ok is returned.
- If i am logged onto the server and access the website through IE and again supply my credentials i am granted access however my colleague who has exactly the same permissions as me is not granted access
- If i access the website from my own PC using IE my credentials are not accepted whatsoever
- If i access the website from my own PC using Firefox my details are accepted

I don't know where to start looking for the problem as there doesnt seem to be any pattern. Is there anyway of monitoring IIS to discover more about wht exactly is going on behind the scenes?

Regards,
Al
0
Comment
Question by:partnershipdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 22764948
Try running the following command and see if it changes the behavior:

cscript c:\inetpub\adminscripts\adsutil.vbs set w3svc/ntauthenticationproviders NTLM

Dave Dietz
0
 

Author Comment

by:partnershipdev
ID: 22766432
Hi Dave,

That code did not seem to make any difference - i was still not granted access. However it lead me to looking at the following kb, http://support.microsoft.com/kb/871179, which details setting an servicePrincipalName on the account that the application pool is running under.

Integrated authentication is now working, but the kb doesnt explain enough about why it is now working. What does setting a servicePrincipalName do? The article would suggest that setting this flag within AD enables IIS Authentication to communicate using Kerberos?

Can you offer any insight?

Thanks
Al
0
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 2000 total points
ID: 22769491
The servicePrincipalname, or SPN, is effectively a named endpoint that AD can use as an origin or destination for Kerberos authentication.  If you try to request a Kerberos ticket for an endpoint that AD doesn't know about Kerberos will fail.  Worse yet, if you ask for one it does know about (a machine name) and then hand that ticket to a process running under a different context (worker process running and a non-system account) it will not be able to read the ticket properly and authentication will fail.

The reason it worked on the server itself is that since you were makign a request to the same machine it used NTLM rather than Kerberos - you will not use Kerberos when making a request that doesn't make it out to the wire.

Dave Dietz
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question