BloggingAbout.NET
Thoughts of developers
Force NTLM protocol instead of Kerberos in IIS

Recently I deployed a WCF service using NTLM transport authentication.

 image 

An issue arose when calling the service from a remote server where Kerberos authentication was not working correctly.

image

 After contacting the infrastructure team, I was informed to use NTLM and not Kerberos as the authentication provider.

By default, IIS uses Kerberos and NTLM for network authentication.  It will choose to use Kerberos if the client is thought to support Kerberos as in this case.  To force IIS to use NTLM only is relatively simple.

First, open IIS to determine the website identify.  This can be done by navigating to the Websites folder:

image

The adsutil.vbs admin script can be used to set the authentication provider.  The screenshot below illustrates:

image

Also, different virtual folders can have different NTAuthenticationProviders settings.  For example, if the virtual folder “HelloWorld” was to be modified only, the command would be:

C:\>cscript c:\inetpub\adminscripts\adsutil.vbs //nologo SET "W3SVC/1/Root/HelloWorld/NTAuthenticationProviders" "NTLM"

Notes:

Related Knowledge Base: http://support.microsoft.com/kb/215383


Posted Fri, Jul 3 2009 5:06 PM by chilberto
Filed under: , , ,

Comments

Dave wrote re: Force NTLM protocol instead of Kerberos in IIS
on Wed, Oct 7 2009 9:33 PM

We would your infrastructure team recommend forcing IIS to use NTLM, instead of setting the site and service up to use Kerberos?  I thought that because of security and performance problems with NTLM, the industry was moving to use Kerberos as a standard... but NTLM seems to be a crutch that people lean on, because in most cases it appears to "just work.

Kerberos is a bit (okay a lot) more difficult to set up, especially when following best practices with least privilege application pool service accounts... but just because it's more difficult doesn't mean that we shouldn't do it.  Right?

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Please add 7 and 2 and type the answer here:
Copyright © 2003-2010 BloggingAbout.NET