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

Re: OpenLDAP gurus: Problem between 1.2.x client side and 2.0.21-1 slapd?



>>>>> "Wei" == Wei Wang <weiwang@interlinknetworks.com> writes:

    Wei> Hi, all, I wonder if anyone had experienced connection
    Wei> problems between 1.2.x client and 2.0.21-1 server?

This is 'expected' behaviour. OpenLDAP 1.2 is LDAPv2 only, OpenLDAP
2.x is LDAPv3. Totaly different protocols.

To have LDAPv2 only client programs talk to a LDAPv3 server, use
the option '-P 2'. Only works with OpenLDAP clients. Other client
programs might have other parameters.

    Wei> We have some code that is linked with 1.2.x (I think it was
    Wei> 1.2.9). A customer has been using it fine with an OpenLDAP
    Wei> server until they upgraded the server to 2.0.21-1 recently.

If this is custom code (ie, something you have developed yourself),
there is need for some code rewriting.

        int version = LDAP_VERSION3;
        ldap_set_option(ldap, LDAP_OPT_PROTOCOL_VERSION, &version);

Either 'LDAP_VERSION3' or 'LDAP_VERSION2'... This is done after the
ldap_init() and ldap_open() function calls...