From 704fbfd32ef14ab1c79dc9bdb17c409574f189c9 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 18 Nov 2019 21:12:45 +0100 Subject: wireless: T1627: RADIUS servers must have a key specified --- src/conf_mode/interfaces-wireless.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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' \ -- cgit v1.2.3