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

Re: How to distinguish between version 1.x and 2.x ? struct ldap

At 04:49 PM 9/21/00 +0000, Hery Rakotoarisoa wrote:
>What is the way to distinguish between the two openldap versions
>(1.x and 2.x) so that a source code using openldap can configure 
>automatically according to the openldap version ?

OpenLDAP 2.0 supports version discovery mechanism outlined
in doc/drafts/drafts-ietf-ldapext-ldap-c-api-xx.txt.

>The question is asked for the use of the two accessors
>ldap_get_option() and ldap_set_option(), but there are certainly
>another differencies between the two versions. How about them ?

See the above draft for API details.

>More generally, how to distiguish openldap LDAP implementation
>(1.x and 2.x) from another ones (SUN's or Netscape's) ?

I posted this (ages ago) details on how to distinguish 1.2 from
Netscape API (as of the post)...