mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 16:26:59 +08:00
tests: added check for the DEFAULT group in test-pass-group-cert
This commit is contained in:
@@ -41,6 +41,12 @@ echo -n "Connecting to obtain cookie - group1 (with certificate)... "
|
||||
|
||||
echo ok
|
||||
|
||||
echo -n "Connecting to obtain cookie - DEFAULT (with certificate)... "
|
||||
( echo "test" | openconnect --authgroup DEFAULT -q localhost:$PORT --sslkey ./user-group-key.pem -c ./user-group-cert.pem -u test --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
|
||||
fail $PID "Could not connect with certificate!"
|
||||
|
||||
echo ok
|
||||
|
||||
echo -n "Connecting to obtain cookie - group2 (with certificate)... "
|
||||
( echo "test" | openconnect --authgroup group2 -q localhost:$PORT --sslkey ./user-group-key.pem -c ./user-group-cert.pem -u test --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
|
||||
fail $PID "Could not connect with certificate!"
|
||||
|
||||
Reference in New Issue
Block a user