Introduction

This covers configuring Apache web server to handle NTLM authentication against an Active Directory domain controller.

Requirements

NOTE: This is just a list of what I used to make it work.

  • Gentoo Linux (2.6.36-gentoo-r8)
  • www-servers/apache-2.2.17
  • dev-perl/Apache2-AuthenNTLM-0.02 ←- doesn't seem to work for NTLMv2

Install NTLMAuthen

emerge dev-perl/Apache2-AuthenNTLM

Configuration

Add….

        PerlAuthenHandler Apache2::AuthenNTLM
        AuthType ntlm
        AuthName "My Awesome Company"
        require valid-user
        PerlAddVar ntdomain "DOMAINNAME DOMAINCONTROLLER"
        PerlSetVar defaultdomain DOMAINNAME
        PerlSetVar ntlmsemtimeout 2
        PerlSetVar ntlmdebug 1
        PerlSetVar splitdomainprefix 1


To inside the <Directory> tag in /etc/apache2/vhosts.d/default_vhost.include or inside whatever specific virtual host folder you want it for.

And, man.. I like this better then mod_auth_ntlm2 using winbind.

Add'l Documentation / Links

 
howto/ntlm_auth_for_apache.txt · Last modified: 2011/06/03 11:05 by bruce
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki