X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest046-dds;h=9cd81b7f730abc388deb5bb43039739c91484aec;hb=fc1396fa2e94ee2e752fd7c3ea5bb22f6592398a;hp=b6ac7befd8ab21603a3894d0f79f518f50ecdc5c;hpb=ad65041c5596257319869693c793d480a29c77b6;p=openldap diff --git a/tests/scripts/test046-dds b/tests/scripts/test046-dds index b6ac7befd8..9cd81b7f73 100755 --- a/tests/scripts/test046-dds +++ b/tests/scripts/test046-dds @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 2005-2008 The OpenLDAP Foundation. +## Copyright 2005-2012 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -16,10 +16,11 @@ echo "running defines.sh" . $SRCDIR/scripts/defines.sh -if test $BACKEND = "ldif" ; then - echo "LDIF backend does not support acls, test skipped" +case $BACKEND in ldif | null) + # LDIF lacks ACL support, NULL cannot hold dynamic entries + echo "Test does not support $BACKEND backend, test skipped" exit 0 -fi +esac if test $DDS = ddsno; then echo "Dynamic Directory Services overlay not available, test skipped" @@ -396,7 +397,7 @@ member: $BJORNSDN dn: $MEETINGDN changetype: modify add: member -member: $JAJDN +member: $JOHNDDN EOMODS RC=$? if test $RC != 0 ; then @@ -444,7 +445,7 @@ case $RC in 0) echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit -1 ;; 50) echo "ldapmodify failed ($RC)" @@ -475,7 +476,18 @@ RC=$? if test $RC = 0 ; then echo "ldapexop should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit -1 +fi + +echo "Trying to refresh the meeting as $JAJDN (should fail)..." +$LDAPEXOP -D "$JAJDN" -w "jaj" -h $LOCALHOST -p $PORT1 \ + "refresh" "$MEETINGDN" "240" \ + >> $TESTOUT 2>&1 +RC=$? +if test $RC = 0 ; then + echo "ldapexop should have failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit -1 fi echo "Trying to delete the meeting as $BABSDN (should fail)..." @@ -489,7 +501,7 @@ case $RC in 0) echo "ldapdelete should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit -1 ;; 50) echo "ldapdelete failed ($RC)" @@ -519,9 +531,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS LDIF=$DDSOUT echo "Filtering ldapsearch results..." -. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT +$LDIFFILTER < $SEARCHOUT > $SEARCHFLT echo "Filtering original ldif used to create database..." -. $LDIFFILTER < $LDIF > $LDIFFLT +$LDIFFILTER < $LDIF > $LDIFFLT echo "Comparing filter output..." $CMP $SEARCHFLT $LDIFFLT > $CMPOUT