diff options
author | Daniil Baturin <daniil@vyos.io> | 2025-05-20 14:31:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-20 14:31:32 +0100 |
commit | 72575f9d606201e41ec33fb5ba1fd8642d618c36 (patch) | |
tree | 3a85112c69fd3885c5d496a9f50df191bf5b2688 /src | |
parent | 85410484f06b181fd09897935e02f214595932a8 (diff) | |
parent | 6315ca045a26d447c9c89892819081d46c1b43cc (diff) | |
download | vyos-1x-72575f9d606201e41ec33fb5ba1fd8642d618c36.tar.gz vyos-1x-72575f9d606201e41ec33fb5ba1fd8642d618c36.zip |
Merge pull request #4513 from natali-rs1985/T7287
openconnect: T7287: VPN Openconnect does not check dictionary key se…
Diffstat (limited to 'src')
-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"): |