[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How to check OpenLDAP version?
Hi,
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 */
#else
/* OpenLDAP-1.2.x or Umich LDAP */
#endif
?
If not, what is the correct way?
Thanks,
Konstantin.
--
* * Konstantin Chuguev - Application Engineer
* * Francis House, 112 Hills Road
* Cambridge CB2 1PQ, United Kingdom
D A N T E WWW: http://www.dante.net