3 * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
8 * Public License. A copy of this license is available at
9 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10 * top-level directory of the distribution.
17 #ifndef _LDAP_FEATURES_H
18 #define _LDAP_FEATURES_H 1
20 /* OpenLDAP API version macros */
21 #undef LDAP_VENDOR_VERSION
22 #undef LDAP_VENDOR_VERSION_MAJOR
23 #undef LDAP_VENDOR_VERSION_MINOR
24 #undef LDAP_VENDOR_VERSION_PATCH
29 ** OpenLDAP reentrancy/thread-safeness should be dynamically
30 ** checked using ldap_get_option().
32 ** The -lldap implementation may or may not be:
33 ** LDAP_API_FEATURE_THREAD_SAFE
35 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_REENTRANT can
36 ** be used to determine if -lldap is LDAP_API_FEATURE_THREAD_SAFE at
39 ** The -lldap_r implementation is always THREAD_SAFE but
41 ** LDAP_API_FEATURE_SESSION_THREAD_SAFE
42 ** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
44 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
45 ** can be used to determine if -lldap_r is available at compile
46 ** time. You must define LDAP_THREAD_SAFE if and only if you
47 ** link with -lldap_r.
49 ** If you fail to define LDAP_THREAD_SAFE when linking with
50 ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
51 ** provided header definations and declarations may be incorrect.
55 /* is -lldap reentrant or not */
56 #undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
58 /* is threadsafe version of -lldap (ie: -lldap_r) *available* or not */
59 #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
61 /* LDAP v2 Kerberos Bind */
62 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
64 /* LDAP v2 Referrals */
65 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
67 /* LDAP Server Side Sort. */
68 #define LDAP_API_FEATURE_SERVER_SIDE_SORT 1000
70 /* LDAP Virtual List View. */
71 #define LDAP_API_FEATURE_VIRTUAL_LIST_VIEW 1000
73 #endif /* LDAP_FEATURES */