HTTP authentication against Active Directory via LDAP with apache2
Used on the "free" (as in beer) side:
- debian testing (sarge)
- apache2
specialuserwith the password
specialpasswordand the domain that is considered is called
domain.comwhile the users are stored in the organisational unit (OU)
companythen the apache2 configuration might look as follows:
<location>Keep in mind that the special bind user can introduce a security risk if not properly restricted!
AuthType Basic
order allow,deny
allow from all
AuthName "Example apache2 LDAP auth with Active Directory on domain.com"
AuthLDAPURL ldap://name_or_ip:389/OU=company,DC=domain,DC=com?sAMAccountName?sub?(objectClass=user)
AuthLDAPBindDN "specialuser@domain.com"
AuthLDAPBindPassword specialpassword
require valid-user
</location>