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

Re: How to check OpenLDAP version?

At 12:03 PM 11/3/00 +0000, Konstantin Chuguev wrote:
>Is it correct to check the OpenLDAP library version (2.0 vs. 1.2), in a
>client using LDAP, like this:
>#include <ldap.h>
>#if LDAP_API_VERSION >= 2000

>If not, what is the correct way?

No.  LDAP_API_VERSION refers to the version of the IETF API
technical specification ("a work in progress") implemented.

To check the vendor version, check LDAP_VENDOR_NAME for

IIRC, 1.2 doesn't defining any of these.

For checking for Netscape/Mozilla SDKs vs. OpenLDAP SDKs, see: