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 1
00042 #define APR_HAS_MICROSOFT_LDAPSDK 0
00043 #define APR_HAS_OTHER_LDAPSDK 0
00044
00045
00046
00047
00048
00049 #if APR_HAS_LDAP
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 #define APR_HAS_LDAP_SSL 1
00060 #define APR_HAS_LDAP_URL_PARSE 0
00061
00062 #if APR_HAS_OPENLDAP_LDAPSDK && !defined(LDAP_DEPRECATED)
00063
00064
00065
00066 #define LDAP_DEPRECATED 1
00067 #endif
00068
00069
00070
00071
00072
00073 #include <lber.h>
00074 #include <ldap.h>
00075
00076
00077
00078
00079
00080
00081 #define APR_HAS_LDAPSSL_CLIENT_INIT 0
00082 #define APR_HAS_LDAPSSL_CLIENT_DEINIT 0
00083 #define APR_HAS_LDAPSSL_ADD_TRUSTED_CERT 0
00084 #define APR_HAS_LDAP_START_TLS_S 1
00085 #define APR_HAS_LDAP_SSLINIT 0
00086 #define APR_HAS_LDAPSSL_INIT 0
00087 #define APR_HAS_LDAPSSL_INSTALL_ROUTINES 0
00088
00089
00090
00091
00092 #ifndef LDAPS_PORT
00093 #define LDAPS_PORT 636
00094 #endif
00095
00096
00097
00098
00099
00100
00101
00102 #if LDAP_VERSION_MAX <= 2
00103 #error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
00104 #endif
00105
00106 #ifdef __cplusplus
00107 extern "C" {
00108 #endif
00109
00115 typedef struct apr_ldap_err_t {
00116 const char *reason;
00117 const char *msg;
00118 int rc;
00119 } apr_ldap_err_t;
00120
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124
00125 #include "apr_ldap_url.h"
00126 #include "apr_ldap_init.h"
00127 #include "apr_ldap_option.h"
00128
00130 #endif
00131 #endif