NTLM Authentication for apt-get’ed Ubuntu
Following on from NTLM Authentication on Ubuntu and Apache2 Revisited this morning, this is how we modify the Apache2 configuration provided by apt in Ubuntu.Open /etc/apache2/sites-enabled/000-default and find
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
Replace with
<Directory />
Options FollowSymLinks
AllowOverride All
NTLMAuth On
AuthName "Authentication"
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative On
AuthType NTLM
require valid-user
</Directory>
Save and close.
Open /etc/apache2/apache2.conf
Find, Include /etc/apache2/mods-enabled/*.conf
and add
LoadModule ntlm_winbind_module /usr/lib/apache2/modules/mod_auth_ntlm_winbind.so
Restart apache2. Job done.
Getting an Internal Server Error?
chmod 777 /var/run/samba/winbindd_privileged
and restart apache. You will need to add the above line to your /etc/rc.local to set the correct permissions every time you reboot, which won't be much.
Related posts
- Ridiculously simple NTLM Authentication for Apache (Ubuntu)
We all know Ubuntu makes things amazingly simple. This is the best I've found so... - NTLM Authentication on Ubuntu and Apache2 Revisited
It's been a while since I've had to build an NTLM integrated Apache2 server. So... - NTLM Authentication (Active Directory) on Apache (Linux)
Here is a quick guide to enabling NTLM authentication for Apache 2. I generally use... - Firefox and NTLM Authentication
Firefox dislikes NTLM authentication really. Sometimes it hates it completely. Specifically when you make AJAX... - Setting up and using NFS on Ubuntu
Network File System, NFS, has been around since Noah first networked his ark. Setting up...



