Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

include/apr_ldap.h

Go to the documentation of this file.
00001 /* Copyright 2002-2005 The Apache Software Foundation or its licensors, as 00002 * applicable. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * apr_ldap.h is generated from apr_ldap.h.in by configure -- do not edit apr_ldap.h 00019 */ 00024 #ifndef APU_LDAP_H 00025 #define APU_LDAP_H 00026 00033 /* this will be defined if LDAP support was compiled into apr-util */ 00034 #define APR_HAS_LDAP 1 00035 00036 /* identify the LDAP toolkit used */ 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 * Handle the case when LDAP is enabled 00048 */ 00049 #if APR_HAS_LDAP 00050 00051 /* 00052 * The following #defines are DEPRECATED and should not be used for 00053 * anything. They remain to maintain binary compatibility. 00054 * The original code defined the OPENLDAP SDK as present regardless 00055 * of what really was there, which was way bogus. In addition, the 00056 * apr_ldap_url_parse*() functions have been rewritten specifically for 00057 * APR, so the APR_HAS_LDAP_URL_PARSE macro is forced to zero. 00058 */ 00059 #define APR_HAS_LDAP_SSL 1 00060 #define APR_HAS_LDAP_URL_PARSE 0 00061 00062 00063 /* 00064 * Include the standard LDAP header files. 00065 */ 00066 00067 #include <lber.h> 00068 #include <ldap.h> 00069 00070 00071 00072 /* 00073 * Detected standard functions 00074 */ 00075 #define APR_HAS_LDAPSSL_CLIENT_INIT 0 00076 #define APR_HAS_LDAPSSL_CLIENT_DEINIT 0 00077 #define APR_HAS_LDAPSSL_ADD_TRUSTED_CERT 0 00078 #define APR_HAS_LDAP_START_TLS_S 1 00079 #define APR_HAS_LDAP_SSLINIT 0 00080 #define APR_HAS_LDAPSSL_INIT 0 00081 #define APR_HAS_LDAPSSL_INSTALL_ROUTINES 0 00082 00083 /* 00084 * Make sure the secure LDAP port is defined 00085 */ 00086 #ifndef LDAPS_PORT 00087 #define LDAPS_PORT 636 /* ldaps:/// default LDAP over TLS port */ 00088 #endif 00089 00090 00091 /* Note: Macros defining const casting has been removed in APR v1.0, 00092 * pending real support for LDAP v2.0 toolkits. 00093 * 00094 * In the mean time, please use an LDAP v3.0 toolkit. 00095 */ 00096 #if LDAP_VERSION_MAX <= 2 00097 #error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit. 00098 #endif 00099 00100 #ifdef __cplusplus 00101 extern "C" { 00102 #endif /* __cplusplus */ 00103 00109 typedef struct apr_ldap_err_t { 00110 const char *reason; 00111 const char *msg; 00112 int rc; 00113 } apr_ldap_err_t; 00114 00115 #ifdef __cplusplus 00116 } 00117 #endif 00118 00119 #include "apr_ldap_url.h" 00120 #include "apr_ldap_init.h" 00121 #include "apr_ldap_option.h" 00122 00124 #endif /* APR_HAS_LDAP */ 00125 #endif /* APU_LDAP_H */

Generated on Sun Nov 20 19:09:06 2005 for Apache Portable Runtime Utility Library by doxygen 1.3.8