With a little side of applesauce...

Sunday, January 28, 2007

Apache2.0 / mod_auth_ldap - Can’t contact LDAP server

If you are using ldaps with mod_auth_ldap, and you have Apache2.0 configured correctly for ldaps connections, ie:
LDAPTrustedCA /etc/apache2/cacert.pem
LDAPTrustedCAType BASE64_FILE
and:

AuthType Basic
AuthName “myauthname”
AuthLDAPEnabled on
AuthLDAPURL ldaps://www.example.com:636/ou=people,dc=example,dc=com?uid
AuthLDAPBindDN “mybinddn”
AuthLDAPBindPassword “mypw”

_and_, you are still getting:
[Tue Jan 16 05:18:01 2007] [warn] [client 129.120.53.163] [4157] auth_ldap authenticate: user asdf authentication failed; URI / [LDAP: ldap_simple_bind_s() failed][Can’t contact LDAP server]

Then try adding/changing:

TLS_REQCERT never

to your /etc/ldap/ldap.conf.

No comments: