php/ldap - bind fails but errorno doesn't execute
Posted
by user240907
on Stack Overflow
See other posts from Stack Overflow
or by user240907
Published on 2010-03-23T15:12:28Z
Indexed on
2010/03/23
15:13 UTC
Read the original article
Hit count: 284
I am trying to connect to ldap with a php web application. If the username/password is correct everything works fine however if the username/password is incorrect I get the following error:
PHP Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials
for some reason I am not able to look at the errorno or the state of the bind variable afterwards to print the appopriate user friendly error message.
any ideas?
© Stack Overflow or respective owner