Blog Stats
  • Posts - 13
  • Articles - 0
  • Comments - 46
  • Trackbacks - 23

 

Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

On Windows Server 2003 SP1, if you configure an IIS site to use a host header and configure that site to use windows integrated authentication, you may have experienced problems logging in to the site.

The symptoms can include:

  • IIS prompting for credentials event though you are logged into the domain and have configured IE to pass credentials automatically.
  • Not being able to log into the site no matter what username/password you use
  • Getting HTTP 404.1 when trying to access the site
  • Authentication events in the security event log like Event ID 537 : An error occurred during logon

If you have encountered these problems, your issues may be related to a new feature added to Windows Server 2003 SP1 and Windows XP SP2. The feature at fault is the Loopback check security feature that helps mitigate reflection attacks that was added to the operating system in these service pack releases. A detailed description of the issue can be found at:   http://support.microsoft.com/?kbid=896861

To resolve the issue you can either turn off the loopback check on the entire server or indicate which host header map back to the local loopback address.

Method 1: Disable Loopback Checking

  1. open regedit
  2. Find HKLM\System\CurrentControlSet\Control\Lsa
  3. Create a new DWORD value called DisableLoopbackCheck and give it a value of 1
  4. Restart the computer

Method 2: Specify Host Names

  1. Open regedit
  2. Find HKLM\system\CurrentControlSet\Control\Lsa\MSV1_0
  3. Create a new multi-string value called BackConnectionHostNames
  4. Add the host headers to this value that map back to the local loopback
  5. Restart your computer

 


Feedback

# Microsoft CRM 3.0 and the Loopback Checking

Gravatar First, I should probably address the fact that I have added a new category for Microsoft CRM 3.0.  We... 12/12/2005 11:12 PM | MrDave's (David Yack) Blog!

# re: Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

Gravatar Great post. If I didn't have this I don't know how the heck I would have figured this out. 11/16/2006 7:59 AM | geoffrey Moore

# re: Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

Gravatar Thanks for sharing... I was trying to figure out what's wrong with my IIS 6.0 for hours last night. Now that I know it was all because of SP1 fixes.

Correct me if I am wrong. Among the two techniques you mentioned, second method (adding Host Name) would be a better choice as the first one (disabling Loopback check) defeats the purpose of SP1 fixes.
12/27/2006 5:50 PM | Maung Mang

# re: Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

Gravatar We're using Windows Server 2003 SP1 and IIS6.0 I've tried both workarounds however did not solve my problem. 6/12/2007 8:43 AM | yeliz isik

# re: Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

Gravatar I have the same problem on Windows 2003 SP1, applied both workarounds, but the problem persists... anybody has something else to add on this matter? 7/25/2007 8:22 PM | Emilio

# re: Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

Gravatar we applied both methods but the issue is not solved. can anyone help! 4/29/2009 2:47 PM | kiki

# re: Windows Authentication not working (by design) in IIS 6.0 on Windows Server 2003 SP1 when you use host headers

Gravatar Make sure you reboot after either method. Restarting IIS does NOT force the change as Microsoft would have you believe on the 1st method.

I tried method 1 and it only worked after the reboot. 5/13/2009 6:50 PM | Gabe

Post a comment





 

 

 

Copyright © Tom Wisnowski