00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023
#ifndef APU_LDAP_H
00024
#define APU_LDAP_H
00025
00033
00034
00035
00036
00037
00038
#define APR_HAS_LDAP 1
00039
00040
00041
#if !APR_HAS_LDAP
00042
00043
#define APR_HAS_NETSCAPE_LDAPSDK 0
00044
#define APR_HAS_NOVELL_LDAPSDK 0
00045
#define APR_HAS_OPENLDAP_LDAPSDK 0
00046
#define APR_HAS_MICROSOFT_LDAPSDK 0
00047
#define APR_HAS_OTHER_LDAPSDK 0
00048
00049
#define APR_HAS_LDAP_SSL 0
00050
#define APR_HAS_LDAP_URL_PARSE 0
00051
00052
00053
#else
00054
00055
#ifdef APR_NOT_READY_YET
00056
00057
00058
00059
00060
00061
#define APR_HAS_NETSCAPE_LDAPSDK @apu_has_ldap_netscape@
00062
#define APR_HAS_NOVELL_LDAPSDK @apu_has_ldap_novell@
00063
#define APR_HAS_OPENLDAP_LDAPSDK @apu_has_ldap_openldap@
00064
#define APR_HAS_MICROSOFT_LDAPSDK @apu_has_ldap_microsoft@
00065
#define APR_HAS_OTHER_LDAPSDK @apu_has_ldap_other@
00066
00067
00068
00069
#define APR_HAS_LDAP_SSL @apu_has_ldap_ssl@
00070
00071
#else
00072
00073
00074
00075
#define APR_HAS_OPENLDAP_LDAPSDK 1
00076
#define APR_HAS_LDAP_SSL 1
00077
00078
#endif
00079
00080
00081
00082
00083
#if APR_HAS_NETSCAPE_LDAPSDK
00084
#define APR_HAS_LDAP_URL_PARSE 1
00085
#elif APR_HAS_NOVELL_LDAPSDK
00086
#define APR_HAS_LDAP_URL_PARSE 1
00087
#elif APR_HAS_OPENLDAP_LDAPSDK
00088
#define APR_HAS_LDAP_URL_PARSE 1
00089
#elif APR_HAS_MICROSOFT_LDAPSDK
00090
#define APR_HAS_LDAP_URL_PARSE 0
00091
#elif APR_HAS_OTHER_LDAPSDK
00092
#define APR_HAS_LDAP_URL_PARSE 0
00093
#else
00094
#define APR_HAS_LDAP_URL_PARSE 0
00095
#error "ERROR no LDAP SDK defined!"
00096
#endif
00097
00098
00099
00100
#if APR_HAS_NETSCAPE_LDAPSDK
00101
#include <lber.h>
00102
#include <ldap.h>
00103
#if APR_HAS_LDAP_SSL
00104
00105
#endif
00106
#endif
00107
00108
#if APR_HAS_NOVELL_LDAPSDK
00109
#include <lber.h>
00110
#include <ldap.h>
00111
#if APR_HAS_LDAP_SSL
00112
00113
#endif
00114
#endif
00115
00116
#if APR_HAS_OPENLDAP_LDAPSDK
00117
#include <lber.h>
00118
#include <ldap.h>
00119
#endif
00120
00121
00122
00123
00124
00125
00126
#if LDAP_VERSION_MAX <= 2
00127
#error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
00128
#endif
00129
00135 typedef struct apr_ldap_err_t {
00136
const char *reason;
00137
const char *msg;
00138
int rc;
00139 }
apr_ldap_err_t;
00140
00141
#include "apr_ldap_url.h"
00142
#include "apr_ldap_init.h"
00143
00145
#endif
00146
#endif