ldap_bind() - Unable to bind to server: Protocol error

in #unable4 years ago

Note that you have to specify the protocol version prior to making a call to ldap_bind, when the server is expecting LDAP protocol version 3. If you do not, you will receive a warning and fail to bind, such as:

ldap_bind(): Unable to bind to server: Protocol error

In order to avoid this, make this call:

ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);

?>

Where $ds is the result returned by ldap_connect(...);

web-development-technology-1.png

Coin Marketplace

STEEM 0.17
TRX 0.24
JST 0.034
BTC 96484.42
ETH 2765.60
SBD 0.65