kieranbarnes Independent PHP, WordPress & CubeCart Programmer

NTLM Authentication on Ubuntu and Apache2 Revisited

Posted on November 4, 2009

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
./configure
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).


Related posts

  1. NTLM Authentication for apt-get’ed Ubuntu
    Following on from NTLM Authentication on Ubuntu and Apache2 Revisited this morning, this is how...
  2. Ridiculously simple NTLM Authentication for Apache (Ubuntu)
    We all know Ubuntu makes things amazingly simple. This is the best I've found so...
  3. NTLM Authentication (Active Directory) on Apache (Linux)
    Here is a quick guide to enabling NTLM authentication for Apache 2. I generally use...
  4. Firefox and NTLM Authentication
    Firefox dislikes NTLM authentication really. Sometimes it hates it completely. Specifically when you make AJAX...
  5. Installing RepoForge (RPMForge) in CentOS
    RepoForge (RPMForge) contains over 5,000 extra packages for CentO. Many new packages and some updated...

Posted by Kieran