Development
This commit is contained in:
parent
ae0019f85d
commit
33ec9e7f1c
4 changed files with 36 additions and 16 deletions
|
|
@ -295,10 +295,14 @@ def set_freeradius_eap(data):
|
|||
inner_block = 'peap' if eap_protocol == 'eap_peap' else 'ttls'
|
||||
content4 = _patch_setting_in_block(content4, inner_block, 'default_eap_type', inner_protocol)
|
||||
|
||||
if eap_protocol in ('eap_peap', 'eap_ttls'):
|
||||
il_val = 'yes' if opts.get('include_length', False) else 'no'
|
||||
inner_blk = 'peap' if eap_protocol == 'eap_peap' else 'ttls'
|
||||
content4 = _patch_setting_in_block(content4, inner_blk, 'include_length', il_val)
|
||||
auth_mode = opts.get('auth_mode', 'mab')
|
||||
if auth_mode == 'eap_credential':
|
||||
il_val = 'yes' if opts.get('include_length', False) else 'no'
|
||||
content4 = _patch_setting_in_block(content4, 'tls', 'include_length', il_val)
|
||||
elif eap_protocol in ('eap_peap', 'eap_ttls'):
|
||||
il_val = 'yes' if opts.get('include_length', False) else 'no'
|
||||
inner_blk = 'peap' if eap_protocol == 'eap_peap' else 'ttls'
|
||||
content4 = _patch_setting_in_block(content4, inner_blk, 'include_length', il_val)
|
||||
|
||||
if content4 == content:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue