summaryrefslogtreecommitdiff
path: root/include/util_ldap.h
diff options
context:
space:
mode:
authorPaul J. Reder <rederpj@apache.org>2008-01-23 18:14:41 +0000
committerPaul J. Reder <rederpj@apache.org>2008-01-23 18:14:41 +0000
commitf4e5632d6075f79c3a5396ddea5873b522af18f0 (patch)
tree72b73a06e28948b5d085a7494f2b036a17edcdc1 /include/util_ldap.h
parentab55bbdb72e39d17593d221378ed1a65af71d016 (diff)
downloadhttpd-f4e5632d6075f79c3a5396ddea5873b522af18f0.tar.gz
This adds Apache support (taking advantage of the new APR capability)
for ldap rebind callback while chasing referrals. This allows direct searches on LDAP servers (in particular MS Active Directory 2003+) using referrals without the use of the global catalog. This addresses PRs 26538, 40268, and 42557 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@614605 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_ldap.h')
-rw-r--r--include/util_ldap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/util_ldap.h b/include/util_ldap.h
index ede0c82f94..1b48ca55fb 100644
--- a/include/util_ldap.h
+++ b/include/util_ldap.h
@@ -29,6 +29,7 @@
#include "apr_tables.h"
#include "apr_time.h"
#include "apr_ldap.h"
+#include "apr_ldap_rebind.h"
#if APR_HAS_MICROSOFT_LDAPSDK
#define AP_LDAP_IS_SERVER_DOWN(s) ((s) == LDAP_SERVER_DOWN \
@@ -112,12 +113,19 @@ typedef struct util_ldap_connection_t {
apr_array_header_t *client_certs; /* Client certificates on this connection */
const char *reason; /* Reason for an error failure */
+ int ChaseReferrals; /* [on|off] (on=1, off=0, default = On)*/
+ int ReferralHopLimit; /* # of referral hops to follow (default = 5) */
struct util_ldap_connection_t *next;
struct util_ldap_state_t *st; /* The LDAP vhost config this connection belongs to */
int keep; /* Will this connection be kept when it's unlocked */
} util_ldap_connection_t;
+typedef struct util_ldap_config_t {
+ int ChaseReferrals;
+ int ReferralHopLimit;
+} util_ldap_config_t;
+
/* LDAP cache state information */
typedef struct util_ldap_state_t {
apr_pool_t *pool; /* pool from which this state is allocated */