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