I am having a problem authenticating users via the ldap_bind function. This may be more of an LDAP question then PHP but I am hoping someone here has sufficient experience with both to help me. Here is the troubling code:
I don't know what kind off error I will get for an invalid password but I know the password in my testing is correct. I am guessing an invalid password will give me a different error but here is the one I get:
Warning: ldap_bind(): Unable to bind to server: Protocol error in /Library/WebServer/Documents/emailchpw.php on line 70
My 'ldap_connect' call returned successfully so the value of '$connect' is good. Can someone at least tell me what this error means? TIA.
Code:
$bind=ldap_bind($connect,"uid=".$username.",dc=mydomain,dc=com",$_POST['password']);
Warning: ldap_bind(): Unable to bind to server: Protocol error in /Library/WebServer/Documents/emailchpw.php on line 70
My 'ldap_connect' call returned successfully so the value of '$connect' is good. Can someone at least tell me what this error means? TIA.