radius-test: fixed wrong password test

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-19 17:41:32 +01:00
parent ecf5ec3391
commit b8964373c8

View File

@@ -51,7 +51,7 @@ if test -z "$IP";then
fi
echo "Detected IP: $IP"
printf "test\ntestuser\n" >pass-radius.tmp
printf "testuser\n" >pass-radius.tmp
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-radius.tmp
if test $? = 0;then
echo "Authentication with wrong password succeeded!"