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

in #unable5 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.12
TRX 0.34
JST 0.032
BTC 109434.81
ETH 3995.10
USDT 1.00
SBD 0.76