ldap_bind(): Unable to bind to server: Protocol errorYou have to specify the protocol version prior before making a call to ldap_bind(), when the server is expecting LDAP protocol version 3. else you will receive the above error
In order to avoid this, make this call:
<?php
ldap_set_option($ldapConnResult, LDAP_OPT_PROTOCOL_VERSION, 3);
?>
Where $ldapConnResult is the result returned by ldap_connect() function.
0 comments:
Post a Comment