kieranbarnes Independent PHP, WordPress & CubeCart Programmer

NTLM Authentication for apt-get’ed Ubuntu

Posted on November 4, 2009

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

  1. Ridiculously simple NTLM Authentication for Apache (Ubuntu)
    We all know Ubuntu makes things amazingly simple. This is the best I've found so...
  2. NTLM Authentication on Ubuntu and Apache2 Revisited
    It's been a while since I've had to build an NTLM integrated Apache2 server. 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. Setting up and using NFS on Ubuntu
    Network File System, NFS, has been around since Noah first networked his ark. Setting up...

Posted by Kieran


Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.