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
00101
00102
00103 #if APR_HAS_LDAP
00104 #define APU_HAS_LDAP
00105 #endif
00106
00107
00108
00109 #if APR_HAS_NETSCAPE_LDAPSDK
00110 #include <lber.h>
00111 #include <ldap.h>
00112 #if APR_HAS_LDAP_SSL
00113
00114 #endif
00115 #endif
00116
00117 #if APR_HAS_NOVELL_LDAPSDK
00118 #include <lber.h>
00119 #include <ldap.h>
00120 #if APR_HAS_LDAP_SSL
00121
00122 #endif
00123 #endif
00124
00125 #if APR_HAS_OPENLDAP_LDAPSDK
00126 #include <lber.h>
00127 #include <ldap.h>
00128 #endif
00129
00130
00131
00132
00133
00134 #if LDAP_VERSION_MAX <= 2
00135 #define const_cast(x) ((char *)(x))
00136 #else
00137 #define const_cast(x) (x)
00138 #endif
00139
00140 #include "apr_ldap_url.h"
00141
00142
00143 #ifndef LDAP_URL_ERR_NOTLDAP
00144 #define LDAP_URL_ERR_NOTLDAP LDAP_URL_ERR_BADSCHEME
00145 #endif
00146
00147 #ifndef LDAP_URL_ERR_NODN
00148 #define LDAP_URL_ERR_NODN LDAP_URL_ERR_BADURL
00149 #endif
00150
00152 #endif
00153 #endif