Click here to Skip to main content
15,886,519 members
Articles / Productivity Apps and Services / Sharepoint

SharePoint Web Site Keeps on Prompting for Credentials

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
2 Mar 2017CPOL2 min read 4.6K   1  
SharePoint web site keeps on prompting for credentials

This article breaks into three sections.

  • Identify and cause
  • Add Exception to strict name checking
  • Disable loopback

Identify and Cause

There are many reasons for this to happen, but most of the time, it will happen when you change the Access mapping to match your domain.

For an example, you might have webwfe01 as your web application in your default zone. And if you change that to www.sampleweb.com, this may occur for Windows Users.

image

This is because by not having Fully Qualified Domain name specified is not matching with the local machine.

For example:

Your local machine can be in a domain myorg.com and the specified Mapping is sampleweb.com.

Thus, this will cause LoopBack check which is true by design for security reasons.

Microsoft specifies two methods to resolve the issue.

  1. Disable Strict Name Checking
  2. Disable Loopback Check

Reference: https://support.microsoft.com/en-us/help/896861/you-receive-error-401.1-when-you-browse-a-web-site-that-uses-integrated-authentication-and-is-hosted-on-iis-5.1-or-a-later-version

You need to do it in all SharePoint servers for safe side in the future service deployment. But it is necessary for all Front End servers.

Disable Strict Name Checking in IIS

This is useful in many scenarios. For me, it's more useful for disable keep on prompting credentials in SharePoint 2013 Environment.

In this method, you need to add your domain as an exception list to IIS for not checking the FQDN for loopback.

Open the RegEdit.

image

And navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

and click on MSV1_0:

image

Then add new Multi Connection String:

image

And add BackConnectionHostNames.

Then you will see that is added to the registry.

image

You can double click and add your fully qualified domain names (one per line) that will be working as an exception.

image

Then, you can save and restart the IIS.

Disable Loopback Check in IIS

This is useful in many scenarios. For me, it's more useful to disable keep on prompting credentials in SharePoint 2013 Environment.

In this method, you can simply disable the check by editing the following registry key.

Open the RegEdit.

image

And navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

image

Click on Lsa Registry and add DisableLoopbackCheck registry key as DWORD value.

image

After adding the registry key, you can find the entry as follows:

image

Then double click the key and Enter 1.

image

And click OK.

Then restart the IIS.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Sri Lanka Sri Lanka
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --