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 &(objectClass=*)
</directory>
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 &(objectClass=*)
</directory>