diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2025-05-19 12:41:12 +0300 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2025-05-19 12:41:12 +0300 |
commit | 6315ca045a26d447c9c89892819081d46c1b43cc (patch) | |
tree | e31564a17623923b0d3bbd30823f4756a055d820 | |
parent | 1268ebb05e909027ecf1b9b4af4a6282d944efa7 (diff) | |
download | vyos-1x-6315ca045a26d447c9c89892819081d46c1b43cc.tar.gz vyos-1x-6315ca045a26d447c9c89892819081d46c1b43cc.zip |
openconnect: T7287: VPN Openconnect does not check dictionary key server with authentication mode RADIUS
-rwxr-xr-x | src/conf_mode/vpn_openconnect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_openconnect.py b/src/conf_mode/vpn_openconnect.py index 42785134f..0346c7819 100755 --- a/src/conf_mode/vpn_openconnect.py +++ b/src/conf_mode/vpn_openconnect.py @@ -93,7 +93,7 @@ def verify(ocserv): "radius" in ocserv["authentication"]["mode"]): raise ConfigError('OpenConnect authentication modes are mutually-exclusive, remove either local or radius from your configuration') if "radius" in ocserv["authentication"]["mode"]: - if not ocserv["authentication"]['radius']['server']: + if 'server' not in ocserv['authentication']['radius']: raise ConfigError('OpenConnect authentication mode radius requires at least one RADIUS server') if "local" in ocserv["authentication"]["mode"]: if not ocserv.get("authentication", {}).get("local_users"): |