[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: how do you enable protocol version 2 support?

BsD JuNkiE wrote:

How do you enable protocol v2 support in openldap 2.1.x? I am trying to get a php / ldap script (phpQLADMIN) to work and unfortunately php only supports ldapV2 so i am getting unable to bind to ldap server: protocol error. I found in the documentation the difference between the two protocols but not how to enable v2.

Thanks in advance and have a great day.

By default, php-ldap(it is a rpm come with php) use protocol 2. You can set php to use protocol 3 by:

ldap_set_option($connectId, LDAP_OPT_PROTOCOL_VERSION, 3);