21 #ifndef APR_LDAP_INIT_H
22 #define APR_LDAP_INIT_H
41 #if defined(LDAP_INSUFFICIENT_ACCESS)
42 #define APU_LDAP_INSUFFICIENT_ACCESS LDAP_INSUFFICIENT_ACCESS
43 #elif defined(LDAP_INSUFFICIENT_RIGHTS)
44 #define APU_LDAP_INSUFFICIENT_ACCESS LDAP_INSUFFICIENT_RIGHTS
45 #elif defined(APR_HAS_MICROSOFT_LDAPSDK)
50 #define APU_LDAP_INSUFFICIENT_ACCESS LDAP_INSUFFICIENT_RIGHTS
52 #error The security return codes must be added to support this LDAP toolkit.
55 #if defined(LDAP_SECURITY_ERROR)
56 #define APU_LDAP_SECURITY_ERROR LDAP_SECURITY_ERROR
58 #define APU_LDAP_SECURITY_ERROR(n) \
59 (LDAP_INAPPROPRIATE_AUTH == n) ? 1 \
60 : (LDAP_INVALID_CREDENTIALS == n) ? 1 \
61 : (APU_LDAP_INSUFFICIENT_ACCESS == n) ? 1 \
89 APU_DECLARE_LDAP(
int) apr_ldap_ssl_init(apr_pool_t *
pool,
90 const
char *cert_auth_file,
92 apr_ldap_err_t **result_err);
103 APU_DECLARE_LDAP(
int) apr_ldap_ssl_deinit(
void);
139 APU_DECLARE_LDAP(
int) apr_ldap_init(apr_pool_t *pool,
141 const
char *hostname,
144 apr_ldap_err_t **result_err);
154 APU_DECLARE_LDAP(
int) apr_ldap_info(apr_pool_t *pool,
155 apr_ldap_err_t **result_err);
apr_pool_t * pool
Definition: apr_dbm_private.h:96