14Mrz/070
Apache LDAP and htaccess authentication
if you would like to setup an two phase apache2 htaccess+ldap authentication this are the right settings:
AuthName "access"
AuthType Basic
AuthUserFile /etc/apache2/rt.htpasswd
AuthLDAPAuthoritative On
AuthAuthoritative Off
AuthLDAPURL "ldap://host/OU=<name>,DC=<domain>,DC=com?samAccountName?sub?(objectCategory=person)(ObjectClass=User)"
AuthLDAPBindDN <binduser>
AuthLDAPBindPassword <bindpassword>
order allow,deny
allow from all
require valid-user
the important settings are:
AuthLDAPAuthoritative On
AuthAuthoritative Off
with his apache checks both the htaccess and the LDAP users





