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

apr_ldap.h

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

Generated on Thu Sep 8 12:20:49 2005 for Apache Portable Runtime Utility Library by  doxygen 1.4.4