I have been unable to connect to a LDAP server using the following code:
(variables defined here)
$ldapconn = ldap_connect( $ldaphost, $ldapport );
When I attempt to print the error:
echo ldap_error($ldapconn);
I get an error "0 is not a LDAP link index"
Shouldn't I be able to get a better error message about why the connection is failing?
Any help would be much appreciated!