]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Cleanup fortinet-auth-config
authorDaniel Lenski <dlenski@gmail.com>
Thu, 17 Jun 2021 20:38:09 +0000 (13:38 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 17 Jun 2021 20:40:07 +0000 (13:40 -0700)
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 <dlenski@gmail.com>
tests/fortinet-auth-and-config

index 32c1cb4342658997a48f5a9bece9a82ea613dbe0..2918cdbe74fe2d7d349013342f3264deb9bfa35d 100755 (executable)
@@ -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