mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-14 06:48:16 +08:00
radius-test: fixed wrong password test
This commit is contained in:
@@ -51,7 +51,7 @@ if test -z "$IP";then
|
|||||||
fi
|
fi
|
||||||
echo "Detected IP: $IP"
|
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
|
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-radius.tmp
|
||||||
if test $? = 0;then
|
if test $? = 0;then
|
||||||
echo "Authentication with wrong password succeeded!"
|
echo "Authentication with wrong password succeeded!"
|
||||||
|
|||||||
Reference in New Issue
Block a user