1999-08-31 09:17:01 +08:00
|
|
|
/* $OpenLDAP$ */
|
1998-12-29 03:51:35 +08:00
|
|
|
/*
|
2000-05-13 10:25:54 +08:00
|
|
|
* Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
|
1998-12-29 03:51:35 +08:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms are permitted only
|
|
|
|
* as authorized by the OpenLDAP Public License. A copy of this
|
|
|
|
* license is available at http://www.OpenLDAP.org/license.html or
|
|
|
|
* in file LICENSE in the top-level directory of the distribution.
|
|
|
|
*/
|
1998-11-11 11:03:03 +08:00
|
|
|
/*
|
|
|
|
* LDAP Features
|
|
|
|
*/
|
|
|
|
#ifndef _LDAP_FEATURES_H
|
|
|
|
#define _LDAP_FEATURES_H 1
|
|
|
|
|
2000-09-15 13:55:58 +08:00
|
|
|
/* OpenLDAP API version macros */
|
|
|
|
#define LDAP_VENDOR_VERSION 0
|
|
|
|
#define LDAP_VENDOR_VERSION_MAJOR 2
|
|
|
|
#define LDAP_VENDOR_VERSION_MINOR X
|
|
|
|
#define LDAP_VENDOR_VERSION_PATCH X
|
|
|
|
|
1999-02-12 05:49:35 +08:00
|
|
|
/*
|
2001-07-22 07:13:04 +08:00
|
|
|
** WORK IN PROGRESS!
|
|
|
|
**
|
1999-02-12 05:49:35 +08:00
|
|
|
** OpenLDAP reentrancy/thread-safeness should be dynamically
|
|
|
|
** checked using ldap_get_option().
|
|
|
|
**
|
|
|
|
** The -lldap implementation may or may not be:
|
|
|
|
** LDAP_API_FEATURE_THREAD_SAFE
|
|
|
|
**
|
|
|
|
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_REENTRANT can
|
|
|
|
** be used to determine if -lldap is LDAP_API_FEATURE_THREAD_SAFE at
|
|
|
|
** compile time.
|
|
|
|
**
|
|
|
|
** The -lldap_r implementation is always THREAD_SAFE but
|
|
|
|
** may also be:
|
|
|
|
** LDAP_API_FEATURE_SESSION_THREAD_SAFE
|
|
|
|
** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
|
|
|
|
**
|
|
|
|
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
1999-05-19 09:12:33 +08:00
|
|
|
** can be used to determine if -lldap_r is availalbe at compile
|
1999-02-12 05:49:35 +08:00
|
|
|
** time. You must define LDAP_THREAD_SAFE if and only if you
|
|
|
|
** link with -lldap_r.
|
|
|
|
**
|
|
|
|
** If you fail to define LDAP_THREAD_SAFE when linking with
|
|
|
|
** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
|
|
|
|
** provided header definations and declarations may be incorrect.
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* is -lldap reentrant or not */
|
|
|
|
/* #undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT */
|
|
|
|
|
|
|
|
/* is threadsafe version of -lldap (ie: -lldap_r) *available* or not */
|
1999-05-19 09:12:33 +08:00
|
|
|
#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE LDAP_VENDOR_VERSION
|
1998-11-11 11:03:03 +08:00
|
|
|
|
1999-02-12 05:49:35 +08:00
|
|
|
/* LDAP v2 Referrals */
|
|
|
|
#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
|
1998-11-11 11:03:03 +08:00
|
|
|
|
2000-06-08 03:39:49 +08:00
|
|
|
/* LDAP Server Side Sort. */
|
|
|
|
#define LDAP_API_FEATURE_SERVER_SIDE_SORT 1000
|
|
|
|
|
|
|
|
/* LDAP Virtual List View. Version = 1000 + draft revision.
|
|
|
|
* VLV requires Server Side Sort control.
|
|
|
|
*/
|
|
|
|
#define LDAP_API_FEATURE_VIRTUAL_LIST_VIEW 1000
|
|
|
|
|
1998-11-11 11:03:03 +08:00
|
|
|
#endif /* LDAP_FEATURES */
|