Microsoft KB Archive/938305

= Error message when you try to log on to a Web site that requires Kerberos authentication by using Internet Explorer 7 on a Windows XP SP2-based computer: &quot;Access is denied due to invalid credentials&quot; =

Article ID: 938305

Article Last Modified on 10/27/2007

-

APPLIES TO


 * Windows Internet Explorer 7

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
You are using Windows Internet Explorer 7 on a Microsoft Windows XP Service Pack 2 (SP2)-based computer. You try to log on to a Web site that requires Kerberos version 5 protocol authentication. However, you are prompted three times for your user credentials, even though you enter the correct information every time that you are prompted to do this. When you try to log on the Web site for the third time, you receive the following error message:

HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials. Internet Information Services (IIS)



CAUSE
This problem occurs if the Web site uses a CNAME resource record in the Domain Name System (DNS) to contact the server that initiates Kerberos authentication. When you use Internet Explorer 7 to access the Web site, Internet Explorer 7 uses the host name of the server instead of the CNAME resource record to contact the server. However, only the Service Principal Name (SPN) for the CNAME resource record is registered on the account that the server uses for the authentication. Therefore, the authentication process does not work.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, install the hotfix that is mentioned in the Microsoft Knowledge Base article 911149. Then, enable the 911149 hotfix on the computer. To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main

 On the Edit menu, point to New, and then click Key. Type FeatureControl, and then press ENTER. Click the FeatureControl registry entry that you created in step 4. On the Edit menu, point to New, and then click Key.</li> Type FEATURE_USE_CNAME_FOR_SPN_KB911149, and then press ENTER.</li> Click the FEATURE_USE_CNAME_FOR_SPN_KB911149 registry entry that you created in step 7.</li> On the Edit menu, point to New, and then click DWORD Value.</li> Type Iexplore.exe, and then press ENTER.</li> Right-click the Iexplore.exe registry entry, and then click Modify.</li> In the Value box, type 1, and then click OK.

Note To revert to the previous behavior for backward compatibility, reset the value of the Iexplore.exe registry entry to 0x0.</li> Exit Registry Editor.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

911149 Error message in Internet Explorer when you try to access a Web site that requires Kerberos authentication on a Windows XP-based computer: &quot;HTTP Error 401 - Unauthorized: Access is denied due to invalid credentials&quot;

Keywords: kbtshoot kbprb kbexpertiseadvanced KB938305

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.