]> git.sur5r.net Git - openldap/commitdiff
the fixes to ITS#3475 make the referrals callback no longer required
authorPierangelo Masarati <ando@openldap.org>
Wed, 12 Jan 2005 21:02:23 +0000 (21:02 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 12 Jan 2005 21:02:23 +0000 (21:02 +0000)
servers/slapd/back-ldap/chain.c

index 0f427b5d273af733cb6823507e1943677184b04a..bb615aaa2a3f811d8224d409ef8559ade346d0ae 100644 (file)
 
 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 );
 }