I have the same code base used on two different sites hosted on the same server (IIS 7.5).
For some reason, when I check the Identity.AuthenticationType property for the code behind the http handler, I see NTLM for 1 site and Negotiate for another. This causes some problems, and I need both of them to use NTLM.
Could you help me figure out why this difference is? So far, I see that both IIS sites are configured the same way, but, of course, there is at least one difference that I could not detect. Thanks!
EDIT
I used the this link, which contains instructions for removing the Negotiation provider from IIS. This did not work for me. I performed
appcmd.exe set config "Contoso" -section:system.webServer/security/authentication/windowsAuthentication /-"providers.[value='Negotiate']" /commit:apphost
Maybe I did something wrong, but it did not help. I still see "Negotiate" as AuthenticationType
My problem is that I set credentials to impersonate web.config, but don't use them. Instead of using the credentials that I provide, it uses an anonymous user.
And something strange is that Windows Authentication is disabled. I thought "Negotiate" is only used for Windows Authentication.
source share