[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Slurpd replication retry problem (patch)



OK, so I figured it out.  Slurpd in ldap-2.0alpha3 is broke.
If a slave is down while slurpd starts, it will never rebind,
even after the slave has started up.  The simplest thing to 
do is explicitly unbind, and then the next retry will rebind
by default.  I have not tested every case, but it fixes my problem.
Here is my diff:

diff -ur servers/slurpd/ldap_op.c /tmp/ldap_op.c 
--- servers/slurpd/ldap_op.c    Wed Nov 24 22:38:52 1999
+++ /tmp/ldap_op.c      Wed Nov 24 22:33:04 1999
@@ -90,7 +90,6 @@
        if ( ri->ri_ldp == NULL ) {
            rc = do_bind( ri, &lderr );
            if ( rc != BIND_OK ) {
-           (void) do_unbind( ri );
                return DO_LDAP_ERR_RETRYABLE;
            }
        }

==================================================================
*        Fork Company - Great Software and Great Service         *
*  Jay D. Allen           jay@fork.com    Portland Oregon, USA   * 
==================================================================