ITS#4417 add test for ldapdelete

This commit is contained in:
Howard Chu 2006-02-27 09:35:54 +00:00
parent 7b5528d68b
commit 94ee25b0d6

View file

@ -158,6 +158,23 @@ for P in $PORT1 $PORT2 ; do
fi
done
echo "Testing ldapdelete propagation..."
$LDAPDELETE -D "cn=Manager 1,$BASEDN" -w $PASSWD -H $URI1 "$BABSDN" \
> $TESTOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldapdelete failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
$LDAPSEARCH -H $URI2 -b "$BABSDN" > $TESTOUT 2>&1
RC=$?
if test $RC = 0 ; then
echo "ldapsearch should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo ">>>>> Test succeeded"