Skip to content

Commit 760911c

Browse files
committed
[chores] OpenWrt: improvements to auth EAP-PEAP/EAP-TTLS
- added the default value of the new auth option and a description for it - added a clarifying code comment in the wireless converter
1 parent 5bbdd6b commit 760911c

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

netjsonconfig/backends/openwrt/converters/wireless.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ def __intermediate_encryption(self, wireless):
128128
and uci['eap_type'] == 'tls'
129129
and 'auth' in uci
130130
):
131+
# remove auth if not needed
132+
# (not applicable to EAP-TLS)
131133
del uci['auth']
132134
if 'key' in encryption:
133135
uci['key'] = encryption['key']

netjsonconfig/schema.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,11 @@
626626
"EAP-TLS",
627627
]
628628
},
629+
"default": "MSCHAPV2",
630+
"description": (
631+
"Defines the phase 2 (inner) authentication method,"
632+
"only applicable if EAP protocol is EAP-PEAP or EAP-TTLS."
633+
),
629634
"propertyOrder": 5,
630635
},
631636
"identity": {"type": "string", "propertyOrder": 6},

0 commit comments

Comments
 (0)