1
/* Copyright 2002-2005 The Apache Software Foundation or its licensors, as
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
18
* apr_ldap.h is generated from apr_ldap.h.in by configure -- do not edit apr_ldap.h
22
* @brief APR-UTIL LDAP
28
* @defgroup APR_Util_LDAP LDAP
33
/* this will be defined if LDAP support was compiled into apr-util */
34
#define APR_HAS_LDAP 1
36
/* identify the LDAP toolkit used */
37
#define APR_HAS_NETSCAPE_LDAPSDK 0
38
#define APR_HAS_SOLARIS_LDAPSDK 0
39
#define APR_HAS_NOVELL_LDAPSDK 1
40
#define APR_HAS_MOZILLA_LDAPSDK 0
41
#define APR_HAS_OPENLDAP_LDAPSDK 0
42
#define APR_HAS_MICROSOFT_LDAPSDK 0
43
#define APR_HAS_OTHER_LDAPSDK 0
47
* Handle the case when LDAP is enabled
52
* The following #defines are DEPRECATED and should not be used for
53
* anything. They remain to maintain binary compatibility.
54
* The original code defined the OPENLDAP SDK as present regardless
55
* of what really was there, which was way bogus. In addition, the
56
* apr_ldap_url_parse*() functions have been rewritten specifically for
57
* APR, so the APR_HAS_LDAP_URL_PARSE macro is forced to zero.
59
#define APR_HAS_LDAP_SSL 1
60
#define APR_HAS_LDAP_URL_PARSE 0
64
* Include the standard LDAP header files.
68
#define LDAP_VERSION_MAX 3
79
* Detected standard functions
81
#define APR_HAS_LDAPSSL_CLIENT_INIT 1
82
#define APR_HAS_LDAPSSL_CLIENT_DEINIT 1
83
#define APR_HAS_LDAPSSL_ADD_TRUSTED_CERT 1
84
#define APR_HAS_LDAP_START_TLS_S 0
85
#define APR_HAS_LDAP_SSLINIT 0
86
#define APR_HAS_LDAPSSL_INIT 1
87
#define APR_HAS_LDAPSSL_INSTALL_ROUTINES 0
91
* Make sure the secure LDAP port is defined
94
#define LDAPS_PORT 636 /* ldaps:/// default LDAP over TLS port */
98
/* Note: Macros defining const casting has been removed in APR v1.0,
99
* pending real support for LDAP v2.0 toolkits.
101
* In the mean time, please use an LDAP v3.0 toolkit.
103
#if LDAP_VERSION_MAX <= 2
104
#error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
109
#endif /* __cplusplus */
112
* This structure allows the C LDAP API error codes to be returned
113
* along with plain text error messages that explain to us mere mortals
114
* what really happened.
116
typedef struct apr_ldap_err_t {
126
#include "apr_ldap_url.h"
127
#include "apr_ldap_init.h"
128
#include "apr_ldap_option.h"
131
#endif /* APR_HAS_LDAP */
132
#endif /* APU_LDAP_H */