Development

This commit is contained in:
Matthew Grotke 2026-06-06 14:25:01 -04:00
parent ae0019f85d
commit 33ec9e7f1c
4 changed files with 36 additions and 16 deletions

View file

@ -88,12 +88,20 @@ def auth_mode_save():
after['inner_protocol'] = inner_protocol
else:
after.pop('inner_protocol', None)
if eap_protocol in ('eap_peap', 'eap_ttls'):
after['include_length'] = include_length
else:
after.pop('include_length', None)
elif auth_mode == 'eap_credential':
after['include_length'] = include_length
else:
after.pop('eap_protocol', None)
after.pop('tunneled_reply', None)
after.pop('inner_protocol', None)
after.pop('include_length', None)
after.pop('eap_protocol', None)
after.pop('tunneled_reply', None)
after.pop('inner_protocol', None)
else: # mab
after.pop('eap_protocol', None)
after.pop('tunneled_reply', None)
after.pop('inner_protocol', None)
after.pop('include_length', None)
cfg.setdefault('radius', {})['options'] = after
changes = diff_fields(before, after)