Openwrt/package
Felix Fietkau e4cf25cfab wpa_supplicant: improve generating phase2 config line for WPA-EAP
WPA-EAP supports several phase2 (=inner) authentication methods when
using EAP-TTLS, EAP-PEAP or EAP-FAST (the latter is added as a first
step towards the UCI model supporting EAP-FAST by this commit)
The value of the auth config variable was previously expected to be
directly parseable as the content of the 'phase2' option of
wpa_supplicant.
This exposed wpa_supplicant's internals, leaving it to view-level to
set the value properly. Unfortunately, this is currently not the case,
as LuCI currently allows values like 'PAP', 'CHAP', 'MSCHAPV2'.
Users thus probably diverged and set auth to values like
'auth=MSCHAPV2' as a work-around.
This behaviour isn't explicitely documented anywhere and is not quite
intuitive...

The phase2-string is now generated according to $eap_type and $auth,
following the scheme also found in hostap's test-cases:
http://w1.fi/cgit/hostap/tree/tests/hwsim/test_ap_eap.py
The old behaviour is also still supported for the sake of not breaking
existing, working configurations.

Examples:
  eap_type   auth
  'ttls'     'EAP-MSCHAPV2'     -> phase2="autheap=MSCHAPV2"
  'ttls'     'MSCHAPV2'         -> phase2="auth=MSCHAPV2"
  'peap'     'EAP-GTC'          -> phase2="auth=GTC"

Deprecated syntax supported for compatibility:
  'ttls'     'autheap=MSCHAPV2' -> phase2="autheap=MSCHAPV2"

I will suggest a patch to LuCI adding EAP-MSCHAPV2, EAP-GTC, ... to
the list of Authentication methods available.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48309
2016-01-18 11:40:44 +00:00
..
base-files base-files: Fix sysupgrade overlay saving 2016-01-17 18:24:30 +00:00
boot packages: bump uboot-sunxi to 2016.01 2016-01-15 20:27:32 +00:00
devel perf: fix strerror_r override detection, apparently part of tools/ relies on non-GNU behavior 2016-01-12 16:42:12 +00:00
firmware linux-firmware: fix mediatek/ralink package names 2016-01-11 20:51:19 +00:00
kernel lantiq: ltq-deu: Remove the "DEU test manager" 2016-01-18 11:40:40 +00:00
libs package/libs/libiconv: function names 2016-01-18 09:23:17 +00:00
network wpa_supplicant: improve generating phase2 config line for WPA-EAP 2016-01-18 11:40:44 +00:00
system ca-certificates: update to version 20160104 2016-01-17 11:03:36 +00:00
utils busybox: fix broken IPv6 address displaying in ifconfig 2016-01-18 11:11:26 +00:00
Makefile