httpd.conf
<Directory /www/>
#AllowOverride None
#Order allow,deny
#Allow from all
AuthType Basic
AuthName "Members Only"
AuthBasicProvider ldap
AuthLDAPURL ldap://***/o=*,dc=*dc=*?cn
AuthLDAPBindDN "cn=Manager,dc=*,dc=*"
AuthLDAPBindPassword {crypt}***
AuthzLDAPAuthoritative off
require valid-user
</Directory>
.htaccess
AuthName "Members Only"
AuthType Basic
AuthLDAPURL ldap://***/o=*,dc=*dc=*?cn
Require valid-user
I apache error log I receive: [Fri Mar 30 15:59:48 2007] [warn] [client 192.168.*.*] [4886] auth_ldap authenticate: user *** authentication failed; URI / [LDAP: ldap_simple_bind_s() failed][Invalid credentials]
[Fri Mar 30 15:59:48 2007] [error] [client 192.168.1.*.*] user ***: authentication failure for "/": Password Mismatch
Server version: Apache/2.2.3
@(#) $OpenLDAP: slapd 2.3.27 (Oct 1 2006 16:34:13) $
brewbuilder@ls20-bc2-14.build.redhat.com:/builddir/build/BUILD/openldap-2.3.27/openldap-2.3.27/build-servers/servers/slapd
LDIF of my user:
dn: cn=test,o=Authorization,dc=*,dc=*
uid: test
objectClass: top
objectClass: person
objectClass: inetOrgPerson
sn: test
cn: test
mail: test@test.com
userPassword: test
