Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to log on to a Web site that requires Kerberos authentication by using Internet Explorer 7: "Access is denied due to invalid credentials"


View products that this article applies to.

Symptoms

You are using Windows Internet Explorer 7. 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)

↑ Back to the top


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.

↑ Back to the top


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:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main
  3. On the Edit menu, point to New, and then click Key.
  4. Type FeatureControl, and then press ENTER.
  5. Click the FeatureControl registry entry that you created in step 4.
  6. On the Edit menu, point to New, and then click Key.
  7. Type FEATURE_USE_CNAME_FOR_SPN_KB911149, and then press ENTER.
  8. Click the FEATURE_USE_CNAME_FOR_SPN_KB911149 registry entry that you created in step 7.
  9. On the Edit menu, point to New, and then click DWORD Value.
  10. Type Iexplore.exe, and then press ENTER.
  11. Right-click the Iexplore.exe registry entry, and then click Modify.
  12. 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.
  13. Exit Registry Editor.

↑ Back to the top


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: "HTTP Error 401 - Unauthorized: Access is denied due to invalid credentials"

↑ Back to the top


Keywords: KB938305, kbexpertiseadvanced, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 938305
Revision : 3
Created on : 10/27/2007
Published on : 10/27/2007
Exists online : False
Views : 539