Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551958 - net-wireless/wpa_supplicant-2.4-r3 does not connect with WPA2 enterprise: "RSN: no PMKSA entry found"
Summary: net-wireless/wpa_supplicant-2.4-r3 does not connect with WPA2 enterprise: "RS...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Rick Farina (Zero_Chaos)
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2015-06-13 09:36 UTC by Eduard Nicodei
Modified: 2018-04-16 20:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.96 KB, text/plain)
2015-06-13 09:37 UTC, Eduard Nicodei
Details
Log with nl80211 driver, 3.14.41 kernel (wpa_supplicant.log.nl80211-3.14.41,120.40 KB, text/plain)
2015-06-13 09:39 UTC, Eduard Nicodei
Details
Log with wext driver, 3.14.41 kernel (wpa_supplicant.log.wext-3.14.41,102.56 KB, text/plain)
2015-06-13 09:39 UTC, Eduard Nicodei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduard Nicodei 2015-06-13 09:36:37 UTC
When attempting to connect to WPA-EAP (radius) network initial EAP auth succeeds, but the 4-way-handshake does not due to missing PMKSA cache entry. wpa_supplicant then retriggers the full EAP authentication which fail in the same way. The process repeats itself until all available APs become blacklisted.

Reproducible: Always




Related links:
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/wpa_supplicant&id=7562b98bd83fe5bce43e6952e0e922e7791e18b5
(Reason 2: Inability to connect to WPA2-Enterprise networks)

https://forums.gentoo.org/viewtopic-t-1016148-highlight-wpasupplicant.html


Relevant log extract:
WPA: PMK from EAPOL state machines - hexdump(len=32): [REMOVED]
RSN: Added PMKSA cache entry for 00:24:6c:c8:ac:42 network_ctx=0x226a2d0
nl80211: Add PMKID for 00:24:6c:c8:ac:42
wlan0: RSN: no PMKSA entry found - trigger full EAP authentication
wlan0: RSN: Do not reply to msg 1/4 - requesting full EAP authentication
Comment 1 Eduard Nicodei 2015-06-13 09:37:36 UTC
Created attachment 405060 [details]
emerge --info
Comment 2 Eduard Nicodei 2015-06-13 09:39:25 UTC
Created attachment 405062 [details]
Log with nl80211 driver, 3.14.41 kernel
Comment 3 Eduard Nicodei 2015-06-13 09:39:53 UTC
Created attachment 405064 [details]
Log with wext driver, 3.14.41 kernel
Comment 4 Eduard Nicodei 2015-06-13 09:46:18 UTC
wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant

network={
	ssid="eduroam"
	identity="XXXXXX@york.ac.uk"
	anonymous_identity="@york.ac.uk"
	ca_cert="/etc/ssl/certs/AddTrust_External_Root.pem"
	key_mgmt=WPA-EAP
	eap=TLS TTLS
	phase2="autheap=MSCHAPV2"
	password=hash:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
}
Comment 5 Andreas Grois 2015-07-08 11:56:39 UTC
Seems that someone found the offending commit:
http://lists.shmoo.com/pipermail/hostap/2015-April/032721.html
Comment 6 Andreas Grois 2015-07-08 12:25:00 UTC
Please disregard my previous comment. I've taken a quick look at the commit mentioned in the linked mail, and also built wpa_supplicant with this change reverted, and I'm pretty sure it isn't the cause of the issue.
I won't promise anything, but if I can find the time, I'll bisect myself.
Comment 7 Andreas Grois 2015-07-08 13:57:29 UTC
As not promised, here's my bisect result:
First bad commit: 35efa2479ff19c3f13e69dc50d2708ce79a99beb
OpenSSL: Allow TLS v1.1 and v1.2 to be negotiated by default
http://w1.fi/cgit/hostap/commit/?id=35efa2479ff19c3f13e69dc50d2708ce79a99beb

And indeed, adding 
phase1="tls_disable_tlsv1_1=1 tls_disable_tlsv1_2=1"
to the network configuration allows me to connect also when using wpa_supplicant-2.4-r3.
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-07-08 15:36:10 UTC
Could I get you to report this upstream, so they know how to help other people with it?
Comment 9 Andreas Grois 2015-07-15 09:12:03 UTC
I just wrote to the hostap mailing list. Let's see what the devs upstream make of the information.
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-08-05 19:18:51 UTC
It is reported upstream, also, it seems like it's a vendor bug in the negotiation.  I'm waiting for work to deploy an Aruba update :(
Comment 11 Rick Farina (Zero_Chaos) gentoo-dev 2018-04-16 20:03:31 UTC
it has been multiple years.  if your radius server is still broken, that must suck for you.  closing as obsolete.