Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548664 - net-wireless/wpa_supplicant-2.4-r1: error when connecting to eduroam with WPA-TLS
Summary: net-wireless/wpa_supplicant-2.4-r1: error when connecting to eduroam with WPA...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-05 09:48 UTC by Mikołaj Kowalski
Modified: 2015-05-09 08:21 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikołaj Kowalski 2015-05-05 09:48:46 UTC
After upgrade from wpa_supplicant-2.2 i can not connect to WPA-Enterprise 'eduroam' network using neither WPA-TLS and WPA-TTLS/PAP. 

wlp3s0: SME: Trying to authenticate with 00:26:3e:1b:86:42 (SSID='eduroam' freq=2437 MHz)
wlp3s0: State: SCANNING -> AUTHENTICATING
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
nl80211: Authenticate (ifindex=3)
  * bssid=00:26:3e:1b:86:42
  * freq=2437
  * SSID - hexdump_ascii(len=7):
     65 64 75 72 6f 61 6d                              eduroam         
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 0
nl80211: Authentication request send successfully
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp3s0
nl80211: New station 00:26:3e:1b:86:42
nl80211: Event message available
nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlp3s0
nl80211: MLME event 37 (NL80211_CMD_AUTHENTICATE) on wlp3s0(e8:b1:fc:04:74:a5) A1=e8:b1:fc:04:74:a5 A2=00:26:3e:1b:86:42
nl80211: MLME event frame - hexdump(len=30): b0 00 02 01 e8 b1 fc 04 74 a5 00 26 3e 1b 86 42 00 26 3e 1b 86 42 c0 eb 00 00 02 00 00 00
nl80211: Authenticate event
wlp3s0: Event AUTH (11) received
wlp3s0: SME: Authentication response: peer=00:26:3e:1b:86:42 auth_type=0 auth_transaction=2 status_code=0
SME: Authentication response IEs - hexdump(len=0): [NULL]
wlp3s0: Trying to associate with 00:26:3e:1b:86:42 (SSID='eduroam' freq=2437 MHz)
wlp3s0: State: AUTHENTICATING -> ASSOCIATING
nl80211: Set wlp3s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 01
nl80211: Associate (ifindex=3)
  * bssid=00:26:3e:1b:86:42
  * freq=2437
  * SSID - hexdump_ascii(len=7):
     65 64 75 72 6f 61 6d                              eduroam         
  * IEs - hexdump(len=34): 7f 08 04 00 00 00 01 00 00 40 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 01
  * WPA Versions 0x1
  * pairwise=0xfac04
  * group=0xfac02
  * akm=0xfac01
nl80211: Association request send successfully
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp3s0
nl80211: Delete station 00:26:3e:1b:86:42
nl80211: Event message available
nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlp3s0
nl80211: MLME event 38 (NL80211_CMD_ASSOCIATE) on wlp3s0(e8:b1:fc:04:74:a5) A1=e8:b1:fc:04:74:a5 A2=00:26:3e:1b:86:42
nl80211: MLME event frame - hexdump(len=46): 10 00 02 01 e8 b1 fc 04 74 a5 00 26 3e 1b 86 42 00 26 3e 1b 86 42 d0 eb 31 04 01 00 00 00 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c
nl80211: Associate event
wlp3s0: Event ASSOC_REJECT (13) received
wlp3s0: CTRL-EVENT-ASSOC-REJECT bssid=00:26:3e:1b:86:42 status_code=1
wlp3s0: SME: Association with 00:26:3e:1b:86:42 failed: status code 1
wpa_driver_nl80211_deauthenticate(addr=00:26:3e:1b:86:42 reason_code=3)
wlp3s0: nl80211: MLME command failed: reason=3 ret=-107 (Transport endpoint is not connected)
wlp3s0: SME: Deauth request to the driver failed
wlp3s0: Radio work 'sme-connect'@0x7ff0b0 done in 0.026625 seconds
Added BSSID 00:26:3e:1b:86:42 into blacklist
wlp3s0: Another BSS in this ESS has been seen; try it next
BSSID 00:26:3e:1b:86:42 blacklist count incremented to 2
wlp3s0: Blacklist count 1 --> request scan in 100 ms
wlp3s0: Setting scan request: 0.100000 sec
wlp3s0: State: ASSOCIATING -> DISCONNECTED



I did not changed the configuration file, which is:

network={ 
ssid="eduroam" 
key_mgmt=WPA-EAP 
eap=TLS 
proto=WPA
identity="login@realm"
ca_cert="/etc/wpa_supplicant/cacert.pem"
client_cert="/etc/wpa_supplicant/cert.pem"
private_key="/etc/wpa_supplicant/private-key.pem"
priority=100
}

I'm using iwlwifi driver from gentoo-source-4.0.0

WPA2-Personal works just fine

Reproducible: Always

Steps to Reproduce:
1.wpa_supplicant -dd -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
2.
3.
Actual Results:  
Error above

Expected Results:  
Connection is established

emerge --info
Portage 2.2.18 (python 3.4.1-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r2, 4.0.0-gentoo x86_64)
=================================================================
System uname: Linux-4.0.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-4300M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     8140380 total,   5489316 free
KiB Swap:    4194296 total,   4194296 free
Timestamp of repository gentoo: Sat, 02 May 2015 00:15:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://ftp.icm.edu.pl/pub/linux/distributions/gentoo-portage/
    priority: -1000

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://pentoo.googlecode.com/svn/portage/trunk/
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

sakaki-tools
    location: /var/lib/layman/sakaki-tools
    sync-type: laymansync
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/megabaks/stuff.git
    masters: gentoo
    priority: 50

Installed sets: @kdeartwork-4.14, @kdebase-4.14, @kdegraphics-4.14, @kdemultimedia-4.14, @kdenetwork-4.14, @kdeutils-4.14, @qt5-essentials
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.icm.edu.pl/pub/Linux/dist/gentoo/ "
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avx avx2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam firefox flac fma3 fortran gdbm gif glamor gles1 gles2 gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nepomuk nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



=================================================================
                        Package Settings
=================================================================

net-wireless/wpa_supplicant-2.4-r1::gentoo was built with the following:
USE="dbus gnutls hs2-0 qt4 readline ssl -ap -eap-sim -fasteap -p2p (-ps3) (-selinux) -smartcard -tdls -uncommon-eap-types -wimax -wps" ABI_X86="64"
Comment 1 Mikołaj Kowalski 2015-05-05 11:13:12 UTC
Error from wifi controler Trapeze WLC 200:

DOT1X May  5 09:34:28.711328 WARNING DOT1X_AAA_ERR: bad MIC on message
2; client: cmos; mac: e8:b1:fc:04:74:a5; ssid: eduroam; AP 26/1
Comment 2 Alexander Tsoy 2015-05-06 09:36:29 UTC
Probably caused by the following change:
http://w1.fi/cgit/hostap/commit/?id=35efa2479ff19c3f13e69dc50d2708ce79a99beb

Please try to add phase1="tls_disable_tlsv1_1=1 tls_disable_tlsv1_2=1" to wpa_supplicant.conf
Comment 3 Mikołaj Kowalski 2015-05-06 13:26:46 UTC
The workaround works like a charm.

Thank you for the help.
Comment 4 Alexander Tsoy 2015-05-06 15:01:19 UTC
Related bug: bug 548064. I think it's worth to add postinst message to ebuild.
Comment 5 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-05-09 08:21:05 UTC
This is not related to the gentoo package, but to the changed behaviour in wpa_supplicant from what I can see.

Please take a look here: https://bugs.gentoo.org/show_bug.cgi?id=548064