#Unprivileged users should not be able to overwrite other's names
testit_expect_failure "Unprivileged users should not be able to modify existing names" $net_tool ads dns register membername.$REALM $UNPRIVIP -U$UNPRIVUSER%$UNPRIVPASS || failed=$(expr $failed + 1)
-testit "We should be able to unregister the name $NAME.$REALM $IPADDRESS" $VALGRIND $net_tool ads dns unregister $NAME.$REALM -P || failed=$(expr $failed + 1)
+testit "We should be able to unregister the name $UNPRIVNAME.$REALM $IPADDRESS" \
+ $VALGRIND $net_tool ads dns unregister $UNPRIVNAME.$REALM -U$UNPRIVUSER%$UNPRIVPASS ||
+ failed=$(expr $failed + 1)
# Remove the unprivileged user, which is not required anymore
$VALGRIND $net_tool user delete $UNPRIVUSER -U$DC_USERNAME%$DC_PASSWORD
testit_grep_count \
- "The name $NAME.$REALM ($IPADDRESS) should not be there any longer" \
+ "The name $UNPRIVNAME.$REALM ($IPADDRESS) should not be there any longer" \
"$IPADDRESS" \
0 \
- dig @$SERVER +short -t a $NAME.$REALM ||
+ dig @$SERVER +short -t a $UNPRIVNAME.$REALM ||
failed=$(expr $failed + 1)
testit_grep_count \
- "The name $NAME.$REALM ($IP6ADDRESS) should not be there any longer" \
+ "The name $UNPRIVNAME.$REALM ($IP6ADDRESS) should not be there any longer" \
"$IP6ADDRESS" \
0 \
- dig @$SERVER +short -t aaaa $NAME.$REALM ||
+ dig @$SERVER +short -t aaaa $UNPRIVNAME.$REALM ||
failed=$(expr $failed + 1)
exit $failed