tests: radius-test: cleanup

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-25 15:32:52 +01:00
parent 0aa2c86f08
commit 632ae25525

View File

@@ -63,14 +63,15 @@ if test $? = 0;then
stop stop
fi fi
printf "test\ntest\n" >pass-radius$TMP printf "test\n" >pass-radius$TMP
openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-radius$TMP openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-radius$TMP
if test $? = 0;then if test $? = 0;then
echo "Authentication with wrong username succeeded!" echo "Authentication with wrong username succeeded!"
stop stop
fi fi
printf "test\ntest\n" >pass-radius$TMP echo "Trying with correct password"
printf "test\n" >pass-radius$TMP
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-radius$TMP & openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-radius$TMP &
PID=$! PID=$!