14 Mrz/07 0
Apache htaccess authentication and LDAP
if you would like to setup on 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 htaccess checks both the users and the LDAP





