]> git.sur5r.net Git - openldap/commitdiff
ITS#5935 test delete of running consumer
authorHoward Chu <hyc@openldap.org>
Tue, 10 Feb 2009 00:38:52 +0000 (00:38 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 10 Feb 2009 00:38:52 +0000 (00:38 +0000)
tests/scripts/test049-sync-config

index 0097efacbea453ae486255dc1f13b951195b6bf2..8ca33320dc507a83e07440033cab3153e32f32ff 100755 (executable)
@@ -313,6 +313,18 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
+echo "Replacing olcSyncrepl on producer..."
+$LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >> $TESTOUT 2>&1
+dn: olcDatabase={0}config,cn=config
+changetype: modify
+replace: olcSyncRepl
+olcSyncRepl: rid=002 provider=$URI1 binddn="cn=config" bindmethod=simple
+  credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
+  retry="3 5 300 5" timeout=3
+EOF
+echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
+sleep $SLEEP1
+
 echo "Using ldapsearch to read config from the producer..."
 $LDAPSEARCH -b cn=config -D cn=config -H $URI1 -y $CONFIGPWF  \
        'objectclass=*' > $MASTEROUT 2>&1