Microsoft KB Archive/896303

= BUG: You receive an &quot;Unauthorized: Logon Failed&quot; message when you browse to a Web site that is hosted on a computer where IIS 6.0 is installed =

Article ID: 896303

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0

-





SYMPTOMS
Consider the following scenario: On a computer that is running Microsoft Internet Information Services 6.0 (IIS), you perform an unattended installation of the FTP Service. You configure the unattended installation of the FTP service to use the PathFTPRoot entry. After the FTP Service has been installed, you try to anonymously access a Web site that is hosted on IIS. When you do this, you receive an error message that is similar to the following:

HTTP 401.1 - Unauthorized: Logon Failed



CAUSE
This issue can occur if the password values for the anonymous user are not synchronized with the password values in the MSFTPSVC\AnonymousUserPass key and W3SVC\AnonymousUserPass keys in the IIS metabase.



RESOLUTION
To resolve this issue, use one of the following methods:

Method 1: Download and install Microsoft Windows Server 2003 Service Pack 1 (SP1)
For more information about how to download and install Windows Server 2003 SP1, visit the following Microsoft Web site:

http://www.microsoft.com/windowsserver2003/downloads/servicepacks/sp1/default.mspx

Method 2: Synchronize the passwords
To synchronize the password values for the anonymous user to the password values in the MSFTPSVC\AnonymousUserPass and W3SVC\AnonymousUserPass keys in the IIS metabase, follow these steps:  Create a file on the hard disk titled .  Paste the following code into the file that you created in step 1, and then save the file: set iis_ftp = GetObject(&quot;IIS://localhost/msftpsvc&quot;) pwd = iis_ftp.get(&quot;AnonymousUserPass&quot;)

set iis_www =GetObject(&quot;IIS://localhost/w3svc&quot;) iis_www.put &quot;AnonymousUserPass&quot;, pwd

iis_www.SetInfo  Click Start, click Run, type Cmd, and then click OK. Use the cd command to change to the folder where you saved the file. Type cscript Syncpw.vbs, and then press ENTER.

<div class="moreinformation_section">

MORE INFORMATION
When you perform an unattended installation of the FTP Service and you configure the unattended installation of the FTP service to use the PathFTPRoot entry, the computer assigns the IUSR_ account a new password. The new password that is assigned to the IUSR_ account is not synchronized with the password values in the MSFTPSVC\AnonymousUserPass and W3SVC\AnonymousUserPass keys in the IIS metabase.

<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 bug was corrected in Windows Server 2003 SP1.

Keywords: kbtshoot kbbug kbfix KB896303

-

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

© Microsoft Corporation. All rights reserved.