mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#5437, #5444 add entry to consumer
This commit is contained in:
parent
fcb92905f7
commit
5de6bbcbe0
@ -348,7 +348,21 @@ $LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \
|
|||||||
>> $TESTOUT 2>&1
|
>> $TESTOUT 2>&1
|
||||||
RC=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapadd failed for database config ($RC)!"
|
echo "ldapadd failed for producer database ($RC)!"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
|
exit $RC
|
||||||
|
fi
|
||||||
|
|
||||||
|
SLEEP=20
|
||||||
|
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
|
||||||
|
sleep $SLEEP
|
||||||
|
|
||||||
|
echo "Using ldapadd to populate consumer..."
|
||||||
|
$LDAPADD -D "$MANAGERDN" -H $URI2 -w $PASSWD -f $LDIFADD1 \
|
||||||
|
>> $TESTOUT 2>&1
|
||||||
|
RC=$?
|
||||||
|
if test $RC != 0 ; then
|
||||||
|
echo "ldapadd failed for consumer database ($RC)!"
|
||||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user