X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_features.h.in;h=1722986246db9c3572b54556c96c5377bbc4b5e8;hb=65f9a005ede921fca3737bfc6d4cb1ba0dd907e4;hp=105aaeb495675ffd0737d2e0171f7cc976506c4e;hpb=a48b606a2f977a17c617b141289c94c28507ff9c;p=openldap diff --git a/include/ldap_features.h.in b/include/ldap_features.h.in index 105aaeb495..1722986246 100644 --- a/include/ldap_features.h.in +++ b/include/ldap_features.h.in @@ -1,13 +1,62 @@ +/* $OpenLDAP$ */ +/* + * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA + * 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. + */ /* * LDAP Features */ #ifndef _LDAP_FEATURES_H #define _LDAP_FEATURES_H 1 -/* LDAP v2 DNS */ -#undef LDAP_API_FEATURE_X_OPENLDAP_V2_DNS +/* +** 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 +** can be used to determine if -lldap_r is available at compile +** 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 */ +#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE + +/* LDAP v2 Kerberos Bind */ +#undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND /* LDAP v2 Referrals */ #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS +/* LDAP Server Side Sort. */ +#define LDAP_API_FEATURE_SERVER_SIDE_SORT 1000 + +/* LDAP Virtual List View. */ +#define LDAP_API_FEATURE_VIRTUAL_LIST_VIEW 1000 + #endif /* LDAP_FEATURES */