"Logon Failure: Unknown User Name or Bad Password" Error Message When You Try to Map a Site to a UNC Share

Symptoms

If you create or configure a Web site or virtual directory to point to a remote UNC share from an Internet Information Services (IIS) 5.0 or IIS 6.0 Web server, you may receive the following error message:

IIS 5.0:
Unable to enumerate files and directories because the following error occurred: Logon Failure: unknown user name or bad password.

IIS 6.0:
Logon Failure: unknown user name or bad password.

Cause

The user who is logged on to the Web server does not have sufficient rights to the remote UNC share. If a Web site or virtual directory points to a remote UNC share, IIS tries to enumerate the file structure in the remote share with the identity of the user who is logged on to the Web server. This user must have access to the server and rights where the UNC share is located.

Resolution

Make sure that the user who is logged on to the Web server has sufficient NTFS permissions on the remote share and has the "Access this computer from the Network" user right on the computer that has the remote share.

Workaround

If the solution that is described in the "Resolution" section is not possible (for example, if the Web server and the file server where the UNC share is located do not belong to the same domain), you may want to create a local account with the same user name and password on both servers, and then add them to the Administrators group (for simplicity). You can then use that user to log on to the IIS server when you configure the Web site or virtual directory to map to the UNC share on the remote server.

More Information

Microsoft does not recommend using UNC mapped content on high-capacity Internet sites.

References

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
280383 IIS Security Recommendations When You Use a UNC Share and Username and Password Credentials
269009 Red Stop Sign Appears in MMC on UNC-Mapped Content Directory
Propiedades

Id. de artículo: 813615 - Última revisión: 30 jul. 2008 - Revisión: 1

Comentarios