Skip to content

Commit

Permalink
[chores] OpenWrt: improvements to auth EAP-PEAP/EAP-TTLS
Browse files Browse the repository at this point in the history
- added the default value of the new auth option
  and a description for it
- added a clarifying code comment in the wireless converter
  • Loading branch information
nemesifier committed Mar 21, 2022
1 parent 5bbdd6b commit 760911c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netjsonconfig/backends/openwrt/converters/wireless.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def __intermediate_encryption(self, wireless):
and uci['eap_type'] == 'tls'
and 'auth' in uci
):
# remove auth if not needed
# (not applicable to EAP-TLS)
del uci['auth']
if 'key' in encryption:
uci['key'] = encryption['key']
Expand Down
5 changes: 5 additions & 0 deletions netjsonconfig/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,11 @@
"EAP-TLS",
]
},
"default": "MSCHAPV2",
"description": (
"Defines the phase 2 (inner) authentication method,"
"only applicable if EAP protocol is EAP-PEAP or EAP-TTLS."
),
"propertyOrder": 5,
},
"identity": {"type": "string", "propertyOrder": 6},
Expand Down

0 comments on commit 760911c

Please sign in to comment.