We all know Ubuntu makes things amazingly simple. This is the best I’ve found so far. NTLM authentication in Apache used to take a while to setup, it used to be tricky, fiddly – generally a bit hit and miss.

Now, in Ubuntu all we need to do is install libapache2-authenntlm-perl

apt-get install libapache2-authenntlm-perl


Now just edit your apt-get’ed Apache installation and modify your Directory options

nano /etc/apache2/sites-enabled/000-default


<Directory />
        Options FollowSymLinks
	AllowOverride None
	  PerlAuthenHandler Apache2::AuthenNTLM
	  AuthType ntlm
	  AuthName "Hill Hire plc"
	  require valid-user
	  PerlAddVar ntdomain "!!DOMAIN NAME!! !!LOGON SERVER!!"
	  PerlSetVar defaultdomain !!DOMAIN NAME!! 
	  PerlSetVar ntlmsemtimeout 2
	  PerlSetVar ntlmdebug 1
	  PerlSetVar splitdomainprefix 1

Restart apache and your on tea isn’t even cool enough to drink yet.