diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-06 18:13:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 18:13:33 +0100 |
commit | 5f61a51c8f5a647ff0eac4563a77cc58bf549c15 (patch) | |
tree | 28e5e9298c04e10e8c3035124abcbe48b3f01f59 /src/conf_mode/vpn_openconnect.py | |
parent | b10d1c0bd60d3497417e124c6d5e0f5291a56853 (diff) | |
parent | ea8f374a37ecbed6e256ddeab2c837d7cc6ad611 (diff) | |
download | vyos-1x-5f61a51c8f5a647ff0eac4563a77cc58bf549c15.tar.gz vyos-1x-5f61a51c8f5a647ff0eac4563a77cc58bf549c15.zip |
Merge pull request #2947 from vyos/mergify/bp/sagitta/pr-2946
T5921: Fix OpenConnect verify for local users (backport #2946)
Diffstat (limited to 'src/conf_mode/vpn_openconnect.py')
-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 421ac6997..08e4fc6db 100755 --- a/src/conf_mode/vpn_openconnect.py +++ b/src/conf_mode/vpn_openconnect.py @@ -91,7 +91,7 @@ def verify(ocserv): if not ocserv["authentication"]['radius']['server']: raise ConfigError('Openconnect authentication mode radius requires at least one RADIUS server') if "local" in ocserv["authentication"]["mode"]: - if not ocserv["authentication"]["local_users"]: + if not ocserv.get("authentication", {}).get("local_users"): raise ConfigError('openconnect mode local required at least one user') if not ocserv["authentication"]["local_users"]["username"]: raise ConfigError('openconnect mode local required at least one user') |