1999-08-31 09:17:01 +08:00
|
|
|
/* $OpenLDAP$ */
|
2003-11-26 15:16:36 +08:00
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
*
|
2004-01-02 03:15:16 +08:00
|
|
|
* Copyright 1998-2004 The OpenLDAP Foundation.
|
1998-12-29 03:51:35 +08:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
2001-05-29 11:29:53 +08:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
2003-11-26 15:16:36 +08:00
|
|
|
* Public License.
|
|
|
|
*
|
|
|
|
* A copy of this license is available in file LICENSE in the
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
1998-12-29 03:51:35 +08:00
|
|
|
*/
|
2001-05-29 11:29:53 +08:00
|
|
|
|
1998-11-10 03:41:09 +08:00
|
|
|
/*
|
|
|
|
* LDAP Features
|
|
|
|
*/
|
2001-05-29 11:29:53 +08:00
|
|
|
|
1998-11-10 03:41:09 +08:00
|
|
|
#ifndef _LDAP_FEATURES_H
|
|
|
|
#define _LDAP_FEATURES_H 1
|
|
|
|
|
2000-09-15 11:27:20 +08:00
|
|
|
/* OpenLDAP API version macros */
|
|
|
|
#undef LDAP_VENDOR_VERSION
|
|
|
|
#undef LDAP_VENDOR_VERSION_MAJOR
|
|
|
|
#undef LDAP_VENDOR_VERSION_MINOR
|
|
|
|
#undef LDAP_VENDOR_VERSION_PATCH
|
|
|
|
|
1998-12-20 08:58:55 +08:00
|
|
|
/*
|
2001-07-22 07:13:04 +08:00
|
|
|
** WORK IN PROGRESS!
|
|
|
|
**
|
1998-12-20 08:58:55 +08:00
|
|
|
** OpenLDAP reentrancy/thread-safeness should be dynamically
|
|
|
|
** checked using ldap_get_option().
|
|
|
|
**
|
2002-12-04 12:51:55 +08:00
|
|
|
** The -lldap implementation is not thread-safe.
|
1998-12-20 08:58:55 +08:00
|
|
|
**
|
2002-12-04 12:51:55 +08:00
|
|
|
** The -lldap_r implementation is:
|
|
|
|
** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
|
|
|
|
** but also be:
|
1998-12-20 08:58:55 +08:00
|
|
|
** LDAP_API_FEATURE_SESSION_THREAD_SAFE
|
|
|
|
** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
|
|
|
|
**
|
|
|
|
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
1999-04-30 19:49:28 +08:00
|
|
|
** can be used to determine if -lldap_r is available at compile
|
1998-12-20 08:58:55 +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.
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
2002-12-04 12:51:55 +08:00
|
|
|
/* is -lldap_r available or not */
|
1998-12-20 08:58:55 +08:00
|
|
|
#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
|
|
|
|
2000-01-09 02:42:11 +08:00
|
|
|
/* LDAP v2 Kerberos Bind */
|
|
|
|
#undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
|
|
|
|
|
1998-11-10 03:41:09 +08:00
|
|
|
/* LDAP v2 Referrals */
|
|
|
|
#undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
|
|
|
|
|
|
|
|
#endif /* LDAP_FEATURES */
|