title: AuthenticationType Negotiate vs NTLM
body: <p>I have the same code base used on 2 different sites hosted on the same server (IIS 7.5). </p>
  
  <p>For some reason, when I check the Identity.AuthenticationType property on the code behind of an http handler I see NTLM for 1 site and Negotiate for the other. This is causing some problems and I need both of them to use NTLM.</p>
  
  <p>Could you help me to figure out why this difference? So far I see both IIS sites are configured on the same way but of course there is at least 1 difference that I couldn't detect.
  Thanks!</p>
  
  <p><strong>EDIT</strong><br>
  I've used <a href="http://www.iis.net/ConfigReference/system.webServer/security/authentication/windowsAuthentication/providers/add" rel="nofollow">this</a> link that provides instructions to remove "Negotiate" provider from IIS. It didn't work for me. I executed</p>
  
  <pre><code>appcmd.exe set config "Contoso" -section:system.webServer/security/authentication/windowsAuthentication /-"providers.[value='Negotiate']" /commit:apphost
  </code></pre>
  
  <p>Maybe I did something wrong, but it didn't help. I still see "Negotiate" as AuthenticationType</p>
  
  <p>The problem I have is that I'm setting on web.config impersonation credentials but it's not using them. Instead of using credentials I provide, it uses the anonymous user.</p>
  
  <p>And something weird is that windowsAuthentication is disabled. I thought "Negotiate" was only used by windowsAuthentication.</p>