HOWTO – LDAP authentication on Apache

Using mod_authnz_ldap
(Apache 2.2.3 on FC6)
I was eventually able to get the following settings to work:

<directory "/var/www/html/test">
    Options All ExecCGI -Indexes
    Order allow,deny
    Allow from all
    AuthzLDAPAuthoritative on
    AuthBasicProvider ldap
    AuthType Basic
    AuthLDAPCompareDNOnServer off
    AuthLDAPBindDN "CN=MyName,CN=Users,DC=MyDomain,DC=com"
    AuthLDAPBindPassword "MyPassword"
    AuthLDAPURL ldap://ldapserver:389/cn=Users,dc=MyDomain,dc=com?sAMAccountName?sub?(objectClass=*)"
    AuthName "
MyAuthName"
    require ldap-filter &amp;(objectClass=*)
</directory>
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • PDF
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Buzz

No Responses to “HOWTO – LDAP authentication on Apache”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>