Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.