0)
echo " ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo " ldapmodify failed ($RC)!"
if test $? != 0 ; then
echo "comparison failed - modrdn operations did not complete correctly"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
if test $? != 0 ; then
echo "comparison failed - modrdn operations did not complete correctly"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
# Ensure that you cannot find the entry for which the rdn was deleted as
if test $? != 0 ; then
echo "failure: ldapsearch found attribute that was to be removed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Using ldapsearch to retrieve all the entries..."
if test $? != 0 ; then
echo "comparison failed - modrdn operations did not complete correctly"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
# Test that you can use modrdn with an attribute value which was previously
if test $? != 0 ; then
echo "comparison failed - modrdn operations did not complete correctly"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Testing modrdn to another database (should fail with affectsMultipleDSAs)"
0)
echo "ldapmodrdn succeeded, should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
71)
;;
0)
echo "ldapmodrdn succeeded, should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
53)
;;
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapmodify failed ($RC)!"
0)
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapwhoami failed ($RC)!"
0)
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapwhoami failed ($RC)!"
0)
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapwhoami failed ($RC)!"
0)
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapwhoami failed ($RC)!"
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
# ITS#6641/8057/8245
if test $RC != $RCODEnorelax && test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Trying to bypass uniqueness as a normal user with ManageDSAIt..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Bypassing uniqueness as an admin user..."
if test $RC != 0 ; then
echo "Initial configuration is not reported correctly."
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically trying to add a URI with legacy attrs present...
if test $RC != 80 ; then
echo "legacy and unique_uri allowed together"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically trying to add legacy ignored attrs with legacy attrs present...
if test $RC != 80 ; then
echo "legacy attrs and legacy ignore attrs allowed together"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Verifying initial configuration intact...
if test $RC != 0 ; then
echo "Initial configuration damaged by unsuccessful modifies."
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically removing legacy base...
if test $RC != 0 ; then
echo "base removal failed"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Verifying base removal...
if test $RC != 0 ; then
echo "Configuration damaged by base removal"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding a non-unique record..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Trying a legacy base outside of the backend...
if test $RC != 80 ; then
echo "out of backend scope base allowed"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding and removing attrs..."
if test $RC != 0 ; then
echo "Unable to remove an attribute"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Verifying we removed the right attr..."
if test $RC != $RCODEconstraint ; then
echo "olcUniqueAttribute single deletion hit the wrong value"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Removing legacy config and adding URIs...
if test $RC != 0 ; then
echo "Reconfiguration to URIs failed"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically retrieving second configuration...
if test $RC != 0 ; then
echo "Second configuration is not reported correctly."
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding a non-unique record..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically trying to add legacy base
if test $RC != 80 ; then
echo "legacy base allowed with URIs"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically trying to add legacy attrs
if test $RC != 80 ; then
echo "legacy attributes allowed with URIs"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically trying to add legacy strictness
if test $RC != 80 ; then
echo "legacy strictness allowed with URIs"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
#echo ----------------------
if test $RC != 80 ; then
echo "bad filter allowed"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Verifying second configuration intact...
if test $RC != 0 ; then
echo "Second configuration damaged by rejected modifies."
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
#echo ----------------------
if test $RC != 0 ; then
echo "unable to reconfigure"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically retrieving third configuration...
if test $RC != 0 ; then
echo "Third configuration is not reported correctly."
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding a record unique in both domains if filtered..."
if test $RC != 0 ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding a record unique in all domains because of filter conditions "
if test $RC != 0 ; then
echo "spurious unique error ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Sending an empty modification"
if test $RC != 0 ; then
echo "spurious unique error ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Making a record non-unique"
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
# ITS#6641/8057/8245
if test $RC != $RCODEnorelax && test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Trying to bypass uniqueness as a normal user with ManageDSAIt..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Bypassing uniqueness as an admin user..."
if test $RC != 0 ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Making the record non-unique with modrdn..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
# ITS#6641/8057/8245
if test $RC != $RCODEnorelax && test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Trying to bypass uniqueness as a normal user with a ManageDSAIt control..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Bypassing uniqueness as an admin user..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
#echo ----------------------
if test $RC != 0 ; then
echo "unable to reconfigure"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Dynamically retrieving fourth configuration...
if test $RC != 0 ; then
echo "Fourth configuration is not reported correctly."
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding a record unique in the ignore-domain..."
if test $RC != 0 ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Adding a record non-unique in the ignore-domain..."
if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
0)
echo "ldapadd should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
10|68)
# Fine if we get alreadyExists or referrals
0)
echo "ldapadd should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
10|68)
# Fine if we get alreadyExists or referrals
if test $RC = 0 && test $BACKEND != null ; then
echo "ldapsearch should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "Search failed ($RC)!"
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "Search failed ($RC)!"
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
#if test $RC != 6 ; then
# echo "Compare failed ($RC)!"
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
-# exit -1
+# exit 1
#fi
case $RC,$BACKEND in
6,* | 5,null)
echo "ldapsearch should have failed with noSuchObject ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
if test $RC = 0 ; then
- exit -1
+ exit 1
fi
exit $RC
fi
if test $RC = 0 ; then
echo "ldapwhoami should have failed!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
# Populate ACIs
if test $RC != 19 ; then
echo "valsort check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
$LDAPSEARCH -b "$VALSORTBASEDN" -H $URI1 \
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0)
echo "ldapcompare returned success ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "ldapcompare failed ($RC)!"
0 )
echo "ldapsearch should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
53)
;;
0)
echo "ldapadd should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
19)
echo "ldapadd failed ($RC)"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
65)
echo "ldapmodify failed ($RC)"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
65)
echo "ldapmodify failed ($RC)"
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
50)
echo "ldapmodify failed ($RC)"
if test $RC = 0 ; then
echo "ldapexop should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Trying to refresh the meeting as $JAJDN (should fail)..."
if test $RC = 0 ; then
echo "ldapexop should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo "Trying to delete the meeting as $BABSDN (should fail)..."
0)
echo "ldapdelete should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
50)
echo "ldapdelete failed ($RC)"
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "Search failed ($RC)!"
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "Search failed ($RC)!"
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
#if test $RC != 6 ; then
# echo "Compare failed ($RC)!"
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
-# exit -1
+# exit 1
#fi
case $RC,$BACKEND in
5,null)
if test $RC != 80 ; then
echo "invalid objectclass modify allowed ($RC)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
$LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF \
if test $RC != 80 ; then
echo "invalid attributeType modify allowed ($RC)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
echo Surveying the damage
if test $RC != 0 ; then
echo "schema destroyed by an unsuccessful operation"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
if test $BACKEND != null ; then
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
fi
;;
*)
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "Search failed ($RC)!"
0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
*)
echo "Search failed ($RC)!"
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ exit 1
;;
51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"