Railo can do NTLM Authentication

Aug 30 2013

Railo can do NTLM Authentication

Posted by AJ Mercer at 11:23 AM CFML | Railo

I have had to make calls to MS CRM 2011 ReST API on Windows 2008 R2 and found out that it uses NTLM Authentication. Much to my relief, I discovered Railo's CFHTTP has support for NTLM.



For Workstation I used this gem:

Because the domain is passed in, the username is just the username, not the full DOMAIN\username.

Something that caught me out is that you require that latest httpClient library to support multiple authentication providers in IIS 7. The good news is, these are in Railo 4.1. I had upgraded my Railo 4.0 to 4.1 and there new JARs were not there. So I downloaded Railo 4.1 JARs and dropped them in to the Railo lib directory (after backing up first).


But now that I have got it working, this project has been put on hold. After taking a quick look at a filter URL for CRM ReST I am not too upset about this. When I get back to this project I will post my dealings with the API...