NTLM Authentication on Ubuntu and Apache2 Revisited

It’s been a while since I’ve had to build an NTLM integrated Apache2 server.
So I thought I’d take help from Ubuntu’s packages and install LAMP from there like most people seem to be doing these days.

Once all that is up and running, you will need to download mod_ntlm_winbind. Its an ancient package I complied years ago from the samba source tree, good news is it still works.

Before we continue, double check you have the apache2-threaded-dev package installed

apt-get installĀ  apache2-threaded-dev

If you don’t, install it along with all the other required packages, most of them are quite useful on web development servers anyway.
This installs the apxs2 binary we need.

unzip ~itsupport/mod_ntlm_winbind.zip
cd mod_ntlm_winbind/autoconf
ln -s mod_ntlm_winbind.c mod_auth_ntlm_winbind.c
/usr/local/apache2/bin/apxs -DAPACHE2 -c -i mod_auth_ntlm_winbind.c

Job done!

For activating it in the apache config, follow my previous guide, NTLM Authentication (Active Directory) on Apache (Linux).

Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

1 thought on “NTLM Authentication on Ubuntu and Apache2 Revisited”

Leave a Reply

Your email address will not be published. Required fields are marked *