mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
tests: check for special characters into username in addition to password
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ echo "Connecting to obtain cookie with wrong username... "
|
||||
#test special characters
|
||||
|
||||
echo "Connecting to obtain cookie... "
|
||||
( echo "!@#$%^&*()<>" | openconnect -q localhost:$PORT -u special --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
|
||||
( echo "!@#$%^&*()<>" | openconnect -q localhost:$PORT -u "sp@c/al" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
|
||||
fail $PID "Could not receive cookie from server"
|
||||
|
||||
#echo "Normal connection... "
|
||||
|
||||
Reference in New Issue
Block a user