00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00024 #ifndef APU_LDAP_H
00025 #define APU_LDAP_H
00026
00033
00034 #define APR_HAS_LDAP 1
00035
00036
00037 #define APR_HAS_NETSCAPE_LDAPSDK 0
00038 #define APR_HAS_SOLARIS_LDAPSDK 0
00039 #define APR_HAS_NOVELL_LDAPSDK 0
00040 #define APR_HAS_MOZILLA_LDAPSDK 0
00041 #define APR_HAS_OPENLDAP_LDAPSDK 0
00042 #define APR_HAS_MICROSOFT_LDAPSDK 1
00043 #define APR_HAS_TIVOLI_LDAPSDK 0
00044 #define APR_HAS_ZOS_LDAPSDK 0
00045 #define APR_HAS_OTHER_LDAPSDK 0
00046
00047
00048
00049
00050
00051 #if APR_HAS_LDAP
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 #if APR_HAS_TIVOLI_LDAPSDK
00062 #define APR_HAS_LDAP_SSL 0
00063 #else
00064 #define APR_HAS_LDAP_SSL 1
00065 #endif
00066 #define APR_HAS_LDAP_URL_PARSE 0
00067
00068 #if APR_HAS_OPENLDAP_LDAPSDK && !defined(LDAP_DEPRECATED)
00069
00070
00071
00072 #define LDAP_DEPRECATED 1
00073 #endif
00074
00075
00076
00077
00078
00079 #include <winldap.h>
00080
00081
00082
00083
00084
00085 #define APR_HAS_LDAPSSL_CLIENT_INIT 0
00086 #define APR_HAS_LDAPSSL_CLIENT_DEINIT 0
00087 #define APR_HAS_LDAPSSL_ADD_TRUSTED_CERT 0
00088 #define APR_HAS_LDAP_START_TLS_S 0
00089 #define APR_HAS_LDAP_SSLINIT 1
00090 #define APR_HAS_LDAPSSL_INIT 0
00091 #define APR_HAS_LDAPSSL_INSTALL_ROUTINES 0
00092
00093
00094
00095
00096
00097 #ifndef LDAPS_PORT
00098 #define LDAPS_PORT 636
00099 #endif
00100
00101
00102
00103
00104
00105
00106
00107
00108 #ifdef LDAP_DEFAULT_LIMIT
00109 #define APR_LDAP_SIZELIMIT LDAP_DEFAULT_LIMIT
00110 #else
00111 #ifdef LDAP_NO_LIMIT
00112 #define APR_LDAP_SIZELIMIT LDAP_NO_LIMIT
00113 #endif
00114 #endif
00115
00116 #ifndef APR_LDAP_SIZELIMIT
00117 #define APR_LDAP_SIZELIMIT 0
00118 #endif
00119
00120
00121
00122
00123 #ifndef LDAP_VERSION_MAX
00124 #define LDAP_VERSION_MAX LDAP_VERSION
00125 #endif
00126 #if APR_HAS_ZOS_LDAPSDK
00127 #define LDAP_VENDOR_NAME "IBM z/OS"
00128 #endif
00129
00130
00131
00132
00133
00134
00135 #if LDAP_VERSION_MAX <= 2
00136 #error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
00137 #endif
00138
00139 #ifdef __cplusplus
00140 extern "C" {
00141 #endif
00142
00148 typedef struct apr_ldap_err_t {
00149 const char *reason;
00150 const char *msg;
00151 int rc;
00152 } apr_ldap_err_t;
00153
00154 #ifdef __cplusplus
00155 }
00156 #endif
00157
00158
00159
00160
00161
00162 #if APR_HAS_MICROSOFT_LDAPSDK
00163 #define APR_LDAP_IS_SERVER_DOWN(s) ((s) == LDAP_SERVER_DOWN \
00164 || (s) == LDAP_UNAVAILABLE)
00165 #else
00166 #define APR_LDAP_IS_SERVER_DOWN(s) ((s) == LDAP_SERVER_DOWN)
00167 #endif
00168
00169
00170
00171
00172
00173 #ifdef APU_DSO_LDAP_BUILD
00174
00175 #define apr_ldap_info apr__ldap_info
00176 #define apr_ldap_init apr__ldap_init
00177 #define apr_ldap_ssl_init apr__ldap_ssl_init
00178 #define apr_ldap_ssl_deinit apr__ldap_ssl_deinit
00179 #define apr_ldap_get_option apr__ldap_get_option
00180 #define apr_ldap_set_option apr__ldap_set_option
00181 #define apr_ldap_rebind_init apr__ldap_rebind_init
00182 #define apr_ldap_rebind_add apr__ldap_rebind_add
00183 #define apr_ldap_rebind_remove apr__ldap_rebind_remove
00184
00185 #define APU_DECLARE_LDAP(type) type
00186 #else
00187 #define APU_DECLARE_LDAP(type) APU_DECLARE(type)
00188 #endif
00189
00190 #include "apr_ldap_url.h"
00191 #include "apr_ldap_init.h"
00192 #include "apr_ldap_option.h"
00193 #include "apr_ldap_rebind.h"
00194
00196 #endif
00197 #endif