ObjectiveThis document will explain various combinations of IIS and WCF Ntlm/Windows authentication settings.What is difference between NTLM and WINDOWS authentication in WCF?Windows authentication = authentication in NTLM + authentication in Active Directory NTLM authentication = authentication in only NTLMIIS configurationFor all scenario IIS is configured for Windows authentication. What I mean is Windows Authentication is enabled and all other authentication is disabled.Navigate to below path to open ApplicationHost.Config file of IIS.
C:\Windows\System32\inetsrv\config\applicationHost.configBinding used in WCF serviceFor all scenario basicHttpBinding being used for WCF service.Scenario #1Default setting for IIS Applicationhost.Config is <windowsAuthentication enabled="false"> <providers> <add value="Negotiate" /> <add value="NTLM" /> </providers> </windowsAuthentication>If IIS APP.Config file is having default setting, then we can have any authentication for WCF service corresponding IIS configured; WCF service will run as expected without any error.Note: SharePoint is running as expected Browsers Behavior with default settings
C# Corner. All contents are copyright of their authors.