diff --git a/tests/radius-test b/tests/radius-test index 3323d2ce..91b041e9 100755 --- a/tests/radius-test +++ b/tests/radius-test @@ -63,14 +63,15 @@ if test $? = 0;then stop 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 if test $? = 0;then echo "Authentication with wrong username succeeded!" stop 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 & PID=$!