From: Pierangelo Masarati Date: Wed, 12 Jan 2005 21:02:23 +0000 (+0000) Subject: the fixes to ITS#3475 make the referrals callback no longer required X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~408 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e6fd44213058e4fc5275cba3e24c3a21f5e18c4;p=openldap the fixes to ITS#3475 make the referrals callback no longer required --- diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index 0f427b5d27..bb615aaa2a 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -31,11 +31,13 @@ static BackendInfo *lback; +#if 0 static int ldap_chain_chk_referrals( Operation *op, SlapReply *rs ) { return LDAP_SUCCESS; } +#endif static int ldap_chain_operational( Operation *op, SlapReply *rs ) @@ -93,7 +95,7 @@ ldap_chain_response( Operation *op, SlapReply *rs ) slap_callback *sc = op->o_callback; LDAPControl **prev = op->o_ctrls; LDAPControl **ctrls = NULL, *c[ 2 ], authz; - int i, nctrls, rc = 0; + int i, nctrls = 0, rc = 0; int cache = op->o_do_not_cache; char *authzid = NULL; BerVarray ref; @@ -476,8 +478,9 @@ chain_init( void ) ldapchain.on_response = ldap_chain_response; - +#if 0 ldapchain.on_bi.bi_chk_referrals = ldap_chain_chk_referrals; +#endif return overlay_register( &ldapchain ); }