From: Daniel Lenski Date: Thu, 17 Jun 2021 20:38:09 +0000 (-0700) Subject: Cleanup fortinet-auth-config X-Git-Tag: v8.20~120^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f5a4fb069405b8bfe37a55789f1eda67e9ae4ca9;p=users%2Fdwmw2%2Fopenconnect.git 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 --- 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