ITS#5810 support back-null

This commit is contained in:
Hallvard Furuseth 2009-11-29 19:05:26 +00:00
parent e0124c5e15
commit 299d802d45
11 changed files with 64 additions and 56 deletions

View file

@ -386,11 +386,10 @@ $LDAPCOMPARE -h $LOCALHOST -p $PORT1 \
"cn=Added User,ou=Alumni Association,ou=People,$BASEDN" \
"seeAlso:cn=All Staff,ou=Groups,$BASEDN" >> $TESTOUT 2>&1
RC=$?
if test $RC != 6 ; then
if test $RC != 6 && test $RC,$BACKEND != 5,null ; then
echo "Compare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS

View file

@ -70,6 +70,7 @@ if test $? != 0 ; then
exit 1
fi
if test $BACKEND != null ; then
echo "Testing sizelimit..."
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 -s one -z 2 > $SEARCHOUT 2>&1
RC=$?
@ -86,6 +87,7 @@ if test $RC = 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS

View file

@ -21,6 +21,11 @@ if test $UNIQUE = uniqueno; then
exit 0
fi
if test $BACKEND = null; then
echo "Test does not support $BACKEND backend, test skipped"
exit 0
fi
mkdir -p $TESTDIR $DBDIR1
$SLAPPASSWD -g -n >$CONFIGPWF

View file

@ -29,6 +29,11 @@ if test $RC != 0 ; then
exit $RC
fi
if test $BACKEND = null; then
echo "Limits irrelevant to $BACKEND backend, test skipped"
exit 0
fi
echo "Running slapindex to index slapd database..."
. $CONFFILTER $BACKEND $MONITORDB < $LIMITSCONF > $CONF1
$SLAPINDEX -f $CONF1

View file

@ -158,7 +158,7 @@ for P in $PORT1 $PORT2 ; do
> $TESTOUT 2>&1
RC=$?
if test $RC != 6 ; then
if test $RC != 6 && test $RC,$BACKEND != 5,null ; then
echo "ldapcompare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
@ -170,7 +170,7 @@ for P in $PORT1 $PORT2 ; do
> $TESTOUT 2>&1
RC=$?
if test $RC != 6 ; then
if test $RC != 6 && test $RC,$BACKEND != 5,null ; then
echo "ldapcompare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC

View file

@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
case $BACKEND in bdb | hdb | ldif) : ;; *)
echo "Test does not support $BACKEND backend, test skipped"
exit 0
esac
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@ -178,7 +173,7 @@ sleep 1
$LDAPSEARCH -H $URI2 -b "$BABSDN" > $TESTOUT 2>&1
RC=$?
if test $RC = 0 ; then
if test $RC = 0 && test $BACKEND != null ; then
echo "ldapsearch should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1

View file

@ -185,7 +185,7 @@ $LDAPADD -v -v -v -D "$TRANSLUCENTROOT" -H $URI2 \
-w $PASSWD < $LDIFTRANSLUCENTADD > $TESTOUT 2>&1
RC=$?
if test $RC != 32 ; then
if test $RC != 32 && test $RC,$BACKEND != 0,null ; then
echo "ldapadd failed ($RC), expected NO SUCH OBJECT!"
grep "$FAILURE" $TESTOUT
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@ -198,7 +198,7 @@ $LDAPMODRDN -D "$TRANSLUCENTROOT" -H $URI2 -w $PASSWD > \
$TESTOUT 2>&1 'uid=fred,ou=users,o=translucent' 'uid=someguy'
RC=$?
if test $RC != 32 ; then
if test $RC != 32 && test $RC,$BACKEND != 0,null ; then
echo "ldapmodrdn failed ($RC), expected NO SUCH OBJECT!"
grep "$FAILURE" $TESTOUT
test $KILLSERVERS != no && kill -HUP $KILLPIDS

View file

@ -485,14 +485,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
case $RC in
0)
case $RC,$BACKEND in
4,* | 0,null)
;;
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
4)
;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@ -509,14 +509,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" -z 2 "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
case $RC in
0)
case $RC,$BACKEND in
4,* | 0,null)
;;
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
4)
;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@ -667,13 +667,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
case $RC in
0)
case $RC,$BACKEND in
0,null)
;;
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
51)
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@ -690,13 +692,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
case $RC in
0)
case $RC,$BACKEND in
0,null)
;;
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
51)
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@ -713,10 +717,10 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit -1
#fi
case $RC in
6)
case $RC,$BACKEND in
6,* | 5,null)
;;
51)
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)

View file

@ -16,13 +16,10 @@
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
case $BACKEND in
hdb | ldif)
;;
*)
if test $BACKEND = bdb ; then
echo "subtree rename not supported by back-$BACKEND"
exit 0
esac
fi
mkdir -p $TESTDIR $DBDIR1

View file

@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
echo "Test does not support $BACKEND"
exit 0
fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh

View file

@ -485,14 +485,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
case $RC in
0)
case $RC,$BACKEND in
4,* | 0,null)
;;
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
4)
;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@ -509,14 +509,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" -z 2 "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
case $RC in
0)
case $RC,$BACKEND in
4,* | 0,null)
;;
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
4)
;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@ -680,13 +680,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
case $RC in
0)
case $RC,$BACKEND in
0,null)
;;
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
51)
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@ -703,13 +705,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
case $RC in
0)
case $RC,$BACKEND in
0,null)
;;
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
51)
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@ -726,10 +730,12 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit -1
#fi
case $RC in
6)
case $RC,$BACKEND in
5,null)
;;
51)
6,*)
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)