I've following problem with my php script: PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in ....

ldap_connect() says "Success" but ldap_bind fails, how to fix that issue?

Thx for help

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

If ldap_bind fails the main reason I can think about is invalid credentials, make sure you're formatting your credentials properly and that the credentials are correct to connect to the LDAP server.

If I were you and if you have shell access try to run ldapsearch with the same credentials and see what results are you getting.

Good luck!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.