~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr-util/include/apr_ldap.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2002-2005 The Apache Software Foundation or its licensors, as
 
2
 * applicable.
 
3
 *
 
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
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 */
 
16
 
 
17
/*
 
18
 * apr_ldap.h is generated from apr_ldap.h.in by configure -- do not edit apr_ldap.h
 
19
 */
 
20
/**
 
21
 * @file apr_ldap.h
 
22
 * @brief  APR-UTIL LDAP 
 
23
 */
 
24
#ifndef APU_LDAP_H
 
25
#define APU_LDAP_H
 
26
 
 
27
/**
 
28
 * @defgroup APR_Util_LDAP LDAP
 
29
 * @ingroup APR_Util
 
30
 * @{
 
31
 */
 
32
 
 
33
/* this will be defined if LDAP support was compiled into apr-util */
 
34
#define APR_HAS_LDAP              @apu_has_ldap@
 
35
 
 
36
/* identify the LDAP toolkit used */
 
37
#define APR_HAS_NETSCAPE_LDAPSDK  @apu_has_ldap_netscape@
 
38
#define APR_HAS_SOLARIS_LDAPSDK   @apu_has_ldap_solaris@
 
39
#define APR_HAS_NOVELL_LDAPSDK    @apu_has_ldap_novell@
 
40
#define APR_HAS_MOZILLA_LDAPSDK   @apu_has_ldap_mozilla@
 
41
#define APR_HAS_OPENLDAP_LDAPSDK  @apu_has_ldap_openldap@
 
42
#define APR_HAS_MICROSOFT_LDAPSDK @apu_has_ldap_microsoft@
 
43
#define APR_HAS_OTHER_LDAPSDK     @apu_has_ldap_other@
 
44
 
 
45
 
 
46
/*
 
47
 * Handle the case when LDAP is enabled
 
48
 */
 
49
#if APR_HAS_LDAP
 
50
 
 
51
/*
 
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.
 
58
 */
 
59
#define APR_HAS_LDAP_SSL 1
 
60
#define APR_HAS_LDAP_URL_PARSE      0
 
61
 
 
62
 
 
63
/*
 
64
 * Include the standard LDAP header files.
 
65
 */
 
66
 
 
67
@lber_h@
 
68
@ldap_h@
 
69
@ldap_ssl_h@
 
70
 
 
71
 
 
72
/*
 
73
 * Detected standard functions
 
74
 */
 
75
#define APR_HAS_LDAPSSL_CLIENT_INIT @apu_has_ldapssl_client_init@
 
76
#define APR_HAS_LDAPSSL_CLIENT_DEINIT @apu_has_ldapssl_client_deinit@
 
77
#define APR_HAS_LDAPSSL_ADD_TRUSTED_CERT @apu_has_ldapssl_add_trusted_cert@
 
78
#define APR_HAS_LDAP_START_TLS_S @apu_has_ldap_start_tls_s@
 
79
#define APR_HAS_LDAP_SSLINIT @apu_has_ldap_sslinit@
 
80
#define APR_HAS_LDAPSSL_INIT @apu_has_ldapssl_init@
 
81
#define APR_HAS_LDAPSSL_INSTALL_ROUTINES @apu_has_ldapssl_install_routines@
 
82
 
 
83
/*
 
84
 * Make sure the secure LDAP port is defined
 
85
 */
 
86
#ifndef LDAPS_PORT
 
87
#define LDAPS_PORT 636  /* ldaps:/// default LDAP over TLS port */
 
88
#endif
 
89
 
 
90
 
 
91
/* Note: Macros defining const casting has been removed in APR v1.0,
 
92
 * pending real support for LDAP v2.0 toolkits.
 
93
 *
 
94
 * In the mean time, please use an LDAP v3.0 toolkit.
 
95
 */
 
96
#if LDAP_VERSION_MAX <= 2
 
97
#error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
 
98
#endif 
 
99
 
 
100
#ifdef __cplusplus
 
101
extern "C" {
 
102
#endif /* __cplusplus */
 
103
 
 
104
/**
 
105
 * This structure allows the C LDAP API error codes to be returned
 
106
 * along with plain text error messages that explain to us mere mortals
 
107
 * what really happened.
 
108
 */
 
109
typedef struct apr_ldap_err_t {
 
110
    const char *reason;
 
111
    const char *msg;
 
112
    int rc;
 
113
} apr_ldap_err_t;
 
114
 
 
115
#ifdef __cplusplus
 
116
}
 
117
#endif
 
118
 
 
119
#include "apr_ldap_url.h"
 
120
#include "apr_ldap_init.h"
 
121
#include "apr_ldap_option.h"
 
122
 
 
123
/** @} */
 
124
#endif /* APR_HAS_LDAP */
 
125
#endif /* APU_LDAP_H */