Authentecate apache with windows 2003 ldap
hello all,
i am trying to make apache to authenticate with windows 2003 ldap.
my httpd.conf (important stuff)
<Directory />
Options All ExecCGI -Indexes
Order allow,deny
Allow from all
AuthLDAPAuthoritative on
# Do basic password authentication in the clear
AuthType Basic
# The name of the protected area or "realm"
AuthName "Domain Name"
# Active Directory requires an authenticating DN to access records
AuthLDAPBindDN cn=user,cn=OS,cn=Linux,cn=Users,dc=domain,dc=com
# This is the password for the AuthLDAPBindDN user in Active Directory
AuthLDAPBindPassword 123
# The LDAP query URL
AuthLDAPURL "ldap://domain.com:389/cn=OS,cn=Linux,cn=Users,dc=domain,dc=com?sAMAccountName?sub?(objectClass=*)"
</Directory>
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
AuthName "Special User Area"
require user username1 username2
</Directory>
i have httpd-2.0.52-32.ent
i load the correct modules
when i surf it shows the login box but i cant login ...
[Tue Sep 25 09:51:11 2007] [warn] [client 10.0.0.1] [1991] auth_ldap authenticate: user user1 authentication failed; URI / [LDAP: ldap_simple_bind_s() failed][Invalid credentials]
but the password is ok ....
the user is located in a ou inside a ou inside a ou .. thats why i have
AuthLDAPBindDN cn=user,cn=OS,cn=Linux,cn=Users,dc=domain,dc=com
what might be the problem ???
tnx ...
|