mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: radius-test: cleanup
This commit is contained in:
@@ -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=$!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user