Geeks With Blogs

News invisible hit counter View My Stats
Technical Speaking

This is known issue with SharePoint 2007 or SharePoint 2010 on Windows Server 2008 platform and not specific to any sharepoint application.

Problem: Your windows credential doesn’t work if you try to log in to the web application ( on the server itself although you can access the same site from outside, when you create a SharePoint web application with a host header ( on SharePoint Server (Server Name: contosto) which is installed on Windows Server 2008. This problem is happening with the recent patches.


If you check the event viewer logs on “Security” category, you will see something like the one below under Audit Failure Keyword


The main reason for this issue is Windows includes a loopback check security feature that helps prevent reflection attacks on your computer. Therefore, authentication fails if the FQDN or the custom host header that you use does not match the local computer name as the system blocks the authentication procedure while resolving the host header given to the web application.

To resolve this issue, a modification must be done to the server's registry to specify the host name. To specify the host names that are mapped to the loopback address and that can connect to Web sites on your computer, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
  3. Right-click MSV1_0, point to New, and then click Multi-String Value.
  4. Type BackConnectionHostNames, and then press ENTER.
  5. Right-click BackConnectionHostNames, and then click Modify.
  6. In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
  7. Exit Registry Editor, and then restart the computer.


The name placeholder is considered a host header. It is an alternative name for the computer on which Reporting Services is installed. You must add the NetBIOS and the Fully Qualified Domain Name (FQDN) for name to the BackConnectionHostNames list that is stored in the Windows registry.
For example, if name is a Windows computer name, such as contoso, the name can likely also be referenced in FQDN form as You must add both representations to the list in BackConnectionHostNames.

So, The above registry modification must be done for all other SharePoint applications which are using Host Header.


 You receive an error message when you use SQL Server 2008 Reporting Services: "HTTP 401.1 - Unauthorized: Logon Failed"

Posted on Thursday, January 6, 2011 1:13 AM Sharepoint 2007 , Microsoft Office SharePoint Server 2007 , SharePoint 2010 | Back to top

Comments on this post: Authentication Error with SharePoint Application which uses Host Header on the Server firm

# re: Authentication Error with SharePoint Application which uses Host Header on the Server firm
Requesting Gravatar...
AWESOME! Thank you!
Works with site01.localhost, site02.localhost, etc!
Left by Stephen Soran on Oct 31, 2013 3:18 AM

# re: Authentication Error with SharePoint Application which uses Host Header on the Server firm
Requesting Gravatar...
Thanks it's working fine,nice job
Left by vignesh on Apr 05, 2014 1:28 PM

Your comment:
 (will show your gravatar)

Copyright © MJ Ferdous | Powered by: | Join free