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?