From f5a4fb069405b8bfe37a55789f1eda67e9ae4ca9 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Thu, 17 Jun 2021 13:38:09 -0700 Subject: [PATCH] Cleanup fortinet-auth-config Fix a couple bits which generate extra noise in the logs (left behind from testing https://gitlab.com/openconnect/openconnect/-/merge_requests/209). Signed-off-by: Daniel Lenski --- tests/fortinet-auth-and-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fortinet-auth-and-config b/tests/fortinet-auth-and-config index 32c1cb43..2918cdbe 100755 --- a/tests/fortinet-auth-and-config +++ b/tests/fortinet-auth-and-config @@ -51,7 +51,7 @@ echo -n "Authenticating with username/password/token and DEFAULT path... " ( echo "test" | LD_PRELOAD=libsocket_wrapper.so $OPENCONNECT --protocol=fortinet -q $ADDRESS:443/?want_2fa=1 -u test --token-mode=totp --token-secret=FAKE $FINGERPRINT --cookieonly >/dev/null 2>&1) || fail $PID "Could not receive cookie from fake Fortinet server" -ok +echo ok echo -n "Authenticating with username/password/(2 round of token) and DEFAULT path... " ( echo "test" | LD_PRELOAD=libsocket_wrapper.so $OPENCONNECT --protocol=fortinet -q $ADDRESS:443/?want_2fa=2 -u test --token-mode=totp --token-secret=FAKE $FINGERPRINT --cookieonly >/dev/null 2>&1) || @@ -60,7 +60,7 @@ echo -n "Authenticating with username/password/(2 round of token) and DEFAULT pa echo ok echo -n "Authenticating with username/password/token and NON-DEFAULT path... " -( echo "test" | LD_PRELOAD=libsocket_wrapper.so $OPENCONNECT --protocol=fortinet -q $ADDRESS:443/fake+Realm?want_2fa=1 -u test --token-mode=totp --token-secret=FAKE $FINGERPRINT --pfs --cookieonly --dump) || +( echo "test" | LD_PRELOAD=libsocket_wrapper.so $OPENCONNECT --protocol=fortinet -q $ADDRESS:443/fake+Realm?want_2fa=1 -u test --token-mode=totp --token-secret=FAKE $FINGERPRINT --pfs --cookieonly >/dev/null 2>&1) || fail $PID "Could not receive cookie from fake Fortinet server" echo ok -- 2.49.0