mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-13 06:48:13 +08:00
tests: corrected full-test checks
This commit is contained in:
@@ -54,22 +54,22 @@ if test ! -z "$QUIT_ON_INIT";then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
printf "test\ntestuser\n" >pass-full$TMP
|
||||
printf "testuser\n" >pass-full$TMP
|
||||
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
|
||||
if test $? = 0;then
|
||||
echo "Authentication with wrong password succeeded!"
|
||||
stop
|
||||
fi
|
||||
|
||||
printf "test\ntest\n" >pass-full$TMP
|
||||
printf "test\n" >pass-full$TMP
|
||||
openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
|
||||
if test $? = 0;then
|
||||
echo "Authentication with wrong username succeeded!"
|
||||
stop
|
||||
fi
|
||||
|
||||
printf "test\ntest\n" >pass-full$TMP
|
||||
openconnect $IP:5551 -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP &
|
||||
printf "test\n" >pass-full$TMP
|
||||
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP &
|
||||
PID=$!
|
||||
|
||||
rm -f pass-full$TMP
|
||||
|
||||
Reference in New Issue
Block a user