rss search

HOWTO – LDAP authentication on Apache

line

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


Leave a Reply