Re: EAP-TLV: Earlier failure - force failed Phase 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2016-01-04 at 14:46 -0800, Adam Jacobs wrote:
> Well, this is weird.
> 
> My laptop runs Ubuntu, and when I reproduced the error, it was
> invoking wpa_supplicant via NetworkManager.  Of course, to test
> disabling TLS1.2, I had to shut off NetworkManager and invoke
> wpa_supplicant manually.
> 
> What I've now discovered is that if I invoke wpa_supplicant manually,
> everything works fine even if I DON'T disable TLS1.2.  My config
> looks like this:
> 
>  
> 
> network={
>   ssid="Mocana-SECURE"
>   key_mgmt=WPA-EAP
>   eap=PEAP
>   identity="ajacobs"
>   password="**********"
>   phase2="auth=MSCHAPV2"
>   ca_cert="/usr/local/etc/MocanaRoot.pem"
> }
> 
> 
> 
> 
> So it must be something about the way NetworkManager is
> calling/managing NetworkSupplicant that causes this failure. 
>  Unfortunately I don't know of any way to debug that further, and as
> I've shown wpa_supplicant to be working properly it is probably no
> longer the domain of this group, Still, I'm happy to take suggestions
> if anyone has any ideas for debugging further.

You can look in your syslog where NM will print the configuration
options it's sending to the supplicant.  We obviously intend that NM
will work here, so this seems like a bug or misconfiguration.  You'll
see stuff like:

NetworkManager[831]: <info>  Config: added 'ssid' value 'my SSID'
NetworkManager[831]: <info>  Config: added 'scan_ssid' value '1'
NetworkManager[831]: <info>  Config: added 'key_mgmt' value 'WPA-PSK'
NetworkManager[831]: <info>  Config: added 'psk' value '<omitted>'
NetworkManager[831]: <info>  Config: added 'proto' value 'WPA RSN'

and while this is obviously for a WPA-PSK connection, yours will EAP
-specific stuff.

What version of NetworkManager are you using?

Dan

> 
> 
> 
> Serves me right for using NetworkManager in the first place.
> 
> 
> 
> 
> Adam
> 
> 
> ________________________________________
> From: Jouni Malinen [j@xxxxx]
> Sent: Friday, January 01, 2016 06:28
> To: Adam Jacobs
> Cc: hostap@xxxxxxxxxxxxxxxxxxx
> Subject: Re: EAP-TLV: Earlier failure - force failed Phase 2
> 
> On Thu, Dec 31, 2015 at 03:36:22PM -0800, Adam Jacobs wrote:
> > Dec 17 07:18:20 jeremiah wpa_supplicant[1146]: wlan0: CTRL-EVENT
> > -EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
> > Dec 17 07:18:20 jeremiah wpa_supplicant[1146]: EAP-MSCHAPV2:
> > Authentication succeeded
> > Dec 17 07:18:20 jeremiah wpa_supplicant[1146]: EAP-TLV: TLV Result 
> > - Success - EAP-TLV/Phase2 Completed
> > Dec 17 07:18:20 jeremiah wpa_supplicant[1146]: EAP-TLV: Earlier
> > failure - force failed Phase 2
> 
> It looks like Phase 2 (EAP-MSCHAPv2 username/password validation)
> succeeded, but something went wrong with the following PEAP steps.
> Adding some more wpa_supplicant debug verbosity (e.g., -d on the
> command
> line) would help clarify what exactly happened here.
> 
> > It seems to happen more-or-less randomly; I'm not doing anything in
> > particular when the connection drops.  I'd say an average session
> > lasts about 30 minutes or so, before it dies and I need to restart.
> > 
> > Disabling TLS1.2 in wpa_supplicant seems to solve the problem, but
> > that's a workaround, not a fix.
> > 
> > Any ideas?  In particular, "EAP-TLV: Earlier failure - force failed
> > Phase 2" seems to be where the trouble starts.  Anyone know what
> > that means?
> 
> My first guess would be that this ended up using PEAPv0 cryptobinding
> and there was an interop issue of some short that caused the server
> and
> wpa_supplicant derive different value. That may very well be
> dependent
> on TLS v1.2 being used.
> 
> Unfortunately, I do not have a Windows 2012 RADIUS server to test
> this
> easily myself. If you can produce more detailed debug logs from
> wpa_supplicant, that would be useful information to have for figuring
> out what exactly might be causing this.
> 
> As a workaround, it might be possible to add
> phase1="crypto_binding=0"
> to disable use of PEAP cryptobinding (if the server allows this).
> That
> said, I'd rather get the real issue figured out and fixed.
> 
> --
> Jouni Malinen                                            PGP id
> EFC895FA
> 
> _______________________________________________
> Hostap mailing list
> Hostap@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/hostap

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux