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

Re: How to check which LDAP (v2 or v3) is in use ?



At 04:45 PM 10/9/00 +0200, BC1 wrote:
>in a development using the OpenLdap-2.0.4 libraries which structure or 
>function should be used to check or enforce LDAP v3 ?

Set LDAP_OPT_VERSION to LDAP_VERSION3 using ldap_set_option
prior to issuing a bind request to force use of LDAPv3.

You can also check LDAP_OPT_VERSION just prior to a bind to see
which version will be requested using ldap_get_option.

See doc/drafts/draft-ietf-ldapext-ldap-c-api-xx.txt for details.

Kurt