Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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