[Auth_ldap] Permission denied trying to connect to LDAP server

Ben Tisdall ben.tisdall at photobox.com
Wed Jan 9 05:27:51 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've compiled auth_ldap 1.6.1 with OpenLDAP & apache1.3 & am trying to
auth against an AD domain.

This my conf:

<Directory "/usr/local/apache/htdocs/test">

~    Options Indexes FollowSymLinks MultiViews
~    AllowOverride None
~    Order allow,deny
~    Allow from all
~    AuthType Basic
~    AuthName "Restricted Directory"
~    AuthLDAPURL ldap://server/dc=domain,dc=com?sAMAccountName?sub
~    AuthLDAPBindDN "cn=me,ou=technology,ou=users,dc=domain,dc=com"
~    AuthLDAPBindPassword mypass
~    require valid-user
</Directory>

But the process fails with this in the log:

[error] [client 127.0.0.1] Could not connect to LDAP server: Permission
denied

However this works:

ldapsearch -x -H ldap://server -D \
cn=me,ou=technology,ou=users,dc=domain,dc=com" -w mypass

Any pointers gratefully received!

Best regards,

Ben.

- --
Ben Tisdall
Linux Systems Administrator
www.photobox.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHhMvXZ929emua3lsRApMbAJ4ywM/Oo8pHLDYHejzw+yAKn9Tq9gCfUUZ/
OVfnI+uy0iQmUnJWh1zxXos=
=K7nu
-----END PGP SIGNATURE-----


More information about the Auth_ldap mailing list