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

How to check OpenLDAP version?


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
/* OpenLDAP-2.x */
/* OpenLDAP-1.2.x or Umich LDAP */

If not, what is the correct way?


          * *        Konstantin Chuguev - Application Engineer
       *      *              Francis House, 112 Hills Road
     *                       Cambridge CB2 1PQ, United Kingdom
 D  A  N  T  E       WWW:    http://www.dante.net