Microsoft KB Archive/899417

= You may receive an &quot;Access is denied&quot; error message you use the WWW-Authenticate: Negotiate method of HTTP authentication to connect to a Web server =

Article ID: 899417

Article Last Modified on 11/15/2007

-

APPLIES TO

 Microsoft Internet Explorer 6.0 Service Pack 1, when used with:  Microsoft Windows XP Service Pack 1

 Microsoft Windows 2000 Professional Edition

 Microsoft Windows 2000 Service Pack 4  Microsoft Windows XP Service Pack 2</li> Microsoft Windows Server 2003, Standard Edition (32-bit x86)</li> Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)</li> Microsoft Windows Server 2003 Service Pack 1</li></ul>

-

<div class="notice_section">

<div class="symptoms_section">

SYMPTOMS
When you use the WWW-Authenticate: Negotiate method of HTTP authentication to connect to a Web server, you may receive an error message that is similar to the following if the Internet Explorer client DNS cache entry expires:

HTTP Error 401 - Unauthorized: Access is denied

<div class="cause_section">

CAUSE
This issue occurs if the following conditions are true:
 * The Internet Explorer advanced option Enable Integrated Windows Authentication is enabled.
 * You use the NetBIOS name to access the Web site, and the name is resolved through Domain Name System (DNS) as a fully qualified domain name (FQDN).
 * The Web site Service Principal Name (SPN) exists only as an FQDN in the Active Directory directory service.
 * The value for the DNS Cache Timeout setting is lower than the DNS Time to Live (TTL) setting value.

When you use the WWW-Authenticate: Negotiate method of HTTP authentication, the Internet Explorer client DNS cache entry may expire. When this entry expires, the Wininet.dll file on the client computer uses the Hostname entry in the Uniform Resource Identifier of the HTTP request to request a new SPNEGO token from the domain controller. The Wininet.dll file uses this Hostname entry instead of using the FQDN that was returned from the initial DNS Resolver query.

<div class="resolution_section">

Service pack information
To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. ==== Internet Explorer 6 Service Pack 1 for Windows 98, Internet Explorer 6 Service Pack 1 for Windows Millennium Edition, Internet Explorer 6 Service Pack 1 for Windows 2000, and Internet Explorer 6 Service Pack 1 for Windows XP ====

<pre class="fixed_text">  Date         Time   Version           Size     File name --  10-Jun-2005  18:53  6.0.2800.1510     585,728  Wininet.dll

Internet Explorer 6 for Windows XP Service Pack 2
<pre class="fixed_text">  Date         Time   Version           Size     File name 11-Jun-2005 02:42  6.0.2900.2696     659,456  Wininet.dll

Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems and Microsoft Windows Server 2003, Datacenter Edition for Itanium-based Systems
<pre class="fixed_text">  Date         Time   Version         Size       File name    Platform -  14-Jun-2005  03:15  6.0.3790.347    1,509,888  Wininet.dll   IA-64 14-Jun-2005 03:15  6.0.3790.347      627,712  Wwininet.dll  x86

x86-based versions of Windows Server 2003
<pre class="fixed_text">  Date         Time   Version           Size     File name --  14-Jun-2005  03:15  6.0.3790.347      627,712  Wininet.dll

Windows Server 2003 Service Pack 1
<pre class="fixed_text">  Date         Time   Version           Size     File name --  14-Jun-2005  19:14  6.0.3790.2464     662,528  Wininet.dll

Windows XP
<pre class="fixed_text">  Date         Time   Version           Size     File name --  11-Jun-2005  02:42  6.0.2900.2696     659,456  Wininet.dll

<div class="workaround_section">

WORKAROUND
To work around this problem and reduce the frequency of this error, set the Internet Explorer DNS Cache Timeout value to the same value as the DNS TTL value in the enterprise. To set the Internet Explorer DNS Cache Time-out value, follow these steps: <ol> Click Start, click Run, type Regedit, and then click OK.</li> To set the Internet Explorer DNS Cache Timeout value per user, locate and then click the following registry subkey:

</li> On the Edit menu, point to New, and then click DWORD value.</li> Type DNSCacheTimeout and then press ENTER.</li> Click DNSCacheTimeout, click Edit, and then click Modify.</li> In the Value data box, type the value that you want in seconds, and then click OK.

Note The default value for the DNS TTL is 1800 seconds.</li> Quit Registry Editor.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
To enable this hotfix, follow these steps: <ol> Click Start, click Run, type Regedit, and then click OK.</li> To enable this hotfix per user, locate and then click the following registry subkey:

To enable this hotfix per computer, locate and then click the following registry subkey:

</li> On the Edit menu, point to New, and then click Key.</li> Type FEATURE_ENSURE_FQDN_FOR_NEGOTIATE_KB899417 and then press ENTER.</li> Click FEATURE_ENSURE_FQDN_FOR_NEGOTIATE_KB899417.</li> On the Edit menu, point to New, and then click DWORD value.</li> <li>Type Iexplore.exe and then press ENTER.</li> <li>Click Iexplore.exe.</li> <li>On the Edit menu, click Modify.</li> <li>In the Value data box, type 1, and then click OK.

Note The valid values for the Iexplore.exe subkey are 0 and 1. A value of 1 enables the hotfix. A value of 0 disables the hotfix.</li> <li>Click FEATURE_ENSURE_FQDN_FOR_NEGOTIATE_KB899417.</li> <li>On the Edit menu, point to New, and then click DWORD value.</li> <li>Type Explorer.exe and then press ENTER.</li> <li>Click Explorer.exe.</li> <li>On the Edit menu, click Modify.</li> <li>In the Value data box, type 1, and then click OK.

Note The valid values for the Explorer.exe subkey are 0 and 1. A value of 1 enables the hotfix. A value of 0 disables the hotfix.</li> <li>Quit Registry Editor.</li></ol>

For more information about SPNEGO and authentication, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms995330.aspx

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This problem was first corrected in Windows Server 2003 Service Pack 2.

Additional query words: SPN FQDN Wininet SPNEGO Kerberos Negotiate credentials credential password prompt

Keywords: kbwinserv2003sp2fix kbqfe kbhotfixserver kbauthentication kbfix kbbug kbpubtypekc KB899417

-

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

© Microsoft Corporation. All rights reserved.