diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-11-18 21:12:45 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-11-23 20:44:02 +0100 |
commit | 704fbfd32ef14ab1c79dc9bdb17c409574f189c9 (patch) | |
tree | 0ad4263c5cff475ac52a981eef5966e694277f66 | |
parent | dfa2f0e8ecd8a117bf47b64d7099d613f487d799 (diff) | |
download | vyos-1x-704fbfd32ef14ab1c79dc9bdb17c409574f189c9.tar.gz vyos-1x-704fbfd32ef14ab1c79dc9bdb17c409574f189c9.zip |
wireless: T1627: RADIUS servers must have a key specified
-rwxr-xr-x | src/conf_mode/interfaces-wireless.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py index 3b270a064..9cfc0bfc5 100755 --- a/src/conf_mode/interfaces-wireless.py +++ b/src/conf_mode/interfaces-wireless.py @@ -1255,6 +1255,10 @@ def verify(wifi): if wifi['sec_wpa'] and not (wifi['sec_wpa_passphrase'] or wifi['sec_wpa_radius']): raise ConfigError('Misssing WPA key or RADIUS server') + for radius in wifi['sec_wpa_radius']: + if not radius['key']: + raise ConfigError('Misssing RADIUS shared secret key for server: {}'.format(radius['server'])) + conf = Config() if not conf.exists('system wifi-regulatory-domain'): raise ConfigError('Wireless regulatory domain is mandatory.\n' \ |