After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 359369 - MS-CHAPv2 802.1x Iauthentification support
MS-CHAPv2 802.1x Iauthentification support
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
0.6.6
Other All
: Normal enhancement
: ---
Assigned To: Dan Williams
Dan Williams
: 400605 413981 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-03 19:27 UTC by drago01
Modified: 2008-07-25 17:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds EAP-MSCHAPv2 Support to NetworkManager (1.00 KB, patch)
2007-02-12 14:15 UTC, Jonathan Anderson
none Details | Review
Adds EAP-MSCHAPv2 to knetworkmanager GUI (3.42 KB, patch)
2007-02-12 14:16 UTC, Jonathan Anderson
none Details | Review
My Latest (Abandoned) Attempt (6.51 KB, patch)
2007-02-13 12:59 UTC, Jonathan Anderson
none Details | Review

Description drago01 2006-10-03 19:27:01 UTC
Networkmanager seems not to support this kind of config, while wpa_supplicant does; can this be implemented in 0.7 ?
http://mail.gnome.org/archives/networkmanager-list/2006-October/msg00032.html
Comment 1 Jonathan Anderson 2007-02-09 22:07:38 UTC
*** Bug 400605 has been marked as a duplicate of this bug. ***
Comment 2 Jonathan Anderson 2007-02-09 22:11:00 UTC
A working wpa_supplicant.conf contains the following block:

network={
         ssid="<ssid>"
         scan_ssid=1
         key_mgmt=WPA-EAP
         eap=PEAP
         identity="<username>"
         password="<password>"
         phase1="include_tls_length=1 peaplabel=0"
         phase2="auth=MSCHAPV2"
}

Of this, I believe that the only part NetworkManager doesn't handle is the phase2 part. Surely, this should be a small thing to fix...
Comment 3 Jonathan Anderson 2007-02-12 14:15:22 UTC
Created attachment 82385 [details] [review]
Adds EAP-MSCHAPv2 Support to NetworkManager

Here's a patch that should add MSCHAPv2 support to NetworkManager.

I'm having (unrelated) issues with the campus wireless network, so my testing isn't complete, but I can see that NetworkManager at least sends "SET_NETWORK 0 eap MSCHAPV2" to wpa_supplicant and gets an "OK" response.
Comment 4 Jonathan Anderson 2007-02-12 14:16:12 UTC
Created attachment 82386 [details] [review]
Adds EAP-MSCHAPv2 to knetworkmanager GUI
Comment 5 Dan Williams 2007-02-13 03:20:24 UTC
Jonathan; what does a working wpa_supplicant config block look like for you?  Normally MSCHAPv2 is used as a phase2 method, not an eap= method...
Comment 6 Jonathan Anderson 2007-02-13 11:11:41 UTC
The working wpa_supplicant block is posted above... you are correct, it's done via phase2=, not eap=. I guess I got excited when I saw an MSCHAPV2 EAP method in the wpa_supplicant documentation.

I'll look into the wpa_supplicant a little more deeply and see if I can get the tunnelled EAP to work.
Comment 7 Dan Williams 2007-02-13 12:36:40 UTC
Current 0.6.x branch SVN should support this already (though not sure about knetworkmanager), actually.  The phase2 patch went in last week but needs more testing.
Comment 8 Jonathan Anderson 2007-02-13 12:57:12 UTC
Well, then... that's good.

I guess I should look for such things before I go trying to do it myself. At least I got to play around with NM's guts a bit.

This patch that you speak of... I'd like to help test it.
Comment 9 Jonathan Anderson 2007-02-13 12:59:42 UTC
Created attachment 82460 [details] [review]
My Latest (Abandoned) Attempt

I may as well post this... it's where I was when I found out that this had already been done.
Comment 10 Dan Williams 2007-02-13 21:03:22 UTC
You can try the 0.6.5-pre tarballs at http://people.redhat.com/dcbw/NetworkManager/0.6.5/

There aren't yet patches for knetworkmanager, to my knowledge though.  But if you wanted to do the patch, that would be great :)
Comment 11 Jonathan Anderson 2007-02-19 17:24:29 UTC
Well, I connected to the campus network once... they've been having some troubles lately, so I can't say why successive attempts fail.

Still, I connected to an MSCHAPv2 network... thanks!
Comment 12 Jonathan Anderson 2007-02-28 20:06:26 UTC
Well, 0.6.5-pre "sorta" works.

It doesn't always succeed in connecting, but that could be network's fault (as it is somewhat flakey... pure wpa_supplicant doesn't *always* work).

One problem that I definitely have, though: the nm-applet forgets my key type (TKIP) and phase2 auth (MSCHAPV2). I often have to select them again, sometimes with a pop-up dialog, sometimes by clicking "Connect to other wireless network".
Comment 13 Alexander van Loon 2007-03-03 10:01:03 UTC
I'm grateful to the developers for striving to implement this, my university also uses 802.1X and without NetworkManager supporting it, it sucks to have to use wpa_supplicant to connect.

However, I hope this is not only about implementing MSCHAP support, but all 802.1X methods supported by wpa_supplicant - http://hostap.epitest.fi/wpa_supplicant/ - listed there? The network I want to connect to uses EAP-TTLS/PAP.

If this bug only concerns MSCHAP specifically, should I file another bug for EAP-TTLS/PAP? If this bug IS an effort for implementing 802.1X support, then could the title please be changed to avoid confusion, and bug #340595 added to the duplicates?
Comment 14 Jonathan Anderson 2007-03-03 14:49:53 UTC
Using the 0.6.5-pre version of nm-applet downloaded from http://people.redhat.com/dcbw/NetworkManager/0.6.5, I can see options for EAP-TTLS/{PAP,MSCHAP,MSCHAPV2,GTC}. So, it should work for you...
Comment 15 Roland Wolters 2007-03-04 00:33:08 UTC
Is bug #353594 a duplicate of this one?
Comment 16 Jonathan Anderson 2007-03-04 13:17:33 UTC
Looks like a dupe to me... this means that Bug #353594 should also be fixed in 0.6.5-pre.
Comment 17 Roland Wolters 2007-06-05 15:02:13 UTC
FYI: EAP-TTLS/PAP, which was mentioned in Bug #353594, works with the 0.6.5, therefore that bug is closed.
Comment 18 Dan Williams 2007-12-07 15:52:52 UTC
*** Bug 413981 has been marked as a duplicate of this bug. ***
Comment 19 drago01 2008-07-25 17:57:00 UTC
This fixed now so closing.