Development

This commit is contained in:
Matthew Grotke 2026-06-06 01:28:03 -04:00
parent 34abbae32e
commit a94863e25a
4 changed files with 77 additions and 4 deletions

View file

@ -75,6 +75,21 @@ def collect_tokens(cfg):
{'value': 'eap_ttls', 'label': 'EAP-TTLS'},
{'value': 'eap_md5', 'label': 'EAP-MD5'},
])
_eap_proto = fr_opts.get('eap_protocol', 'eap_peap')
_inner_opts_peap = [
{'value': 'mschapv2', 'label': 'MSCHAPv2 (Default)'},
{'value': 'md5', 'label': 'MD5'},
{'value': 'gtc', 'label': 'GTC'},
]
_inner_opts_ttls = [
{'value': 'md5', 'label': 'MD5 (Default)'},
{'value': 'mschapv2', 'label': 'MSCHAPv2'},
{'value': 'gtc', 'label': 'GTC'},
]
tokens['RADIUS_INNER_PROTOCOL'] = fr_opts.get('inner_protocol', '')
tokens['RADIUS_INNER_PROTOCOL_OPTIONS'] = json.dumps(
_inner_opts_ttls if _eap_proto == 'eap_ttls' else _inner_opts_peap
)
pro_suffix = '' if PRO_LICENSE else ' (PRO REQUIRED)'
pro_disabled = not PRO_LICENSE
tokens['RADIUS_AUTH_MODE_OPTIONS'] = json.dumps([