FS#24929 - [netcfg] Broken support for 802.1x in netcfg 2.5.5
Attached to Project:
Arch Linux
Opened by Nicola Mori (snack) - Tuesday, 28 June 2011, 15:46 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Sunday, 21 August 2011, 12:06 GMT
Opened by Nicola Mori (snack) - Tuesday, 28 June 2011, 15:46 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Sunday, 21 August 2011, 12:06 GMT
|
Details
Description:
Since netcfg 2.5.5 I can't connect anymore to the wireless 802.1x network in my institute. I obtain this error message: $ sudo netcfg 6-INFN-dot1x :: 6-INFN-dot1x up [BUSY] > WPA Authentication/Association Failed [FAIL] It works with netcfg 2.5.4 or manually associating to the access point by invoking wpa_supplicant from command line an then dhcpcd. Additional info: * package version(s) netcfg 2.5.5-1 * config and/or log files etc. $ cat /etc/network.d/6-INFN-dot1x CONNECTION="wireless" INTERFACE=wlan0 HOSTNAME="elric" DESCRIPTION="INFN-dot1x" ESSID="INFN-dot1x" SCAN="yes" TIMEOUT=20 SECURITY="wpa-config" WPA_CONF="/etc/wpa_supplicant.conf-INFN-dot1x" IP="dhcp" $ cat /etc/wpa_supplicant.conf-INFN-dot1x ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=2 fast_reauth=1 network={ ssid="INFN-dot1x" proto=WPA scan_ssid=1 key_mgmt=WPA-EAP pairwise=TKIP group=TKIP eap=TTLS identity=<my identity> password=<my password> ca_cert=<my certificate> phase2="auth=PAP" priority=1 } Steps to reproduce: Configure netcfg to connect to a 802.1x wireless network and try to connect to it |
This task depends upon
Closed by Rémy Oudompheng (remyoudompheng)
Sunday, 21 August 2011, 12:06 GMT
Reason for closing: Won't fix
Additional comments about closing: Not really a bug of netcfg: wpa_supplicant had to be explicitly specificied driver "wext" with WPA_DRIVER=wext to work properly.
Sunday, 21 August 2011, 12:06 GMT
Reason for closing: Won't fix
Additional comments about closing: Not really a bug of netcfg: wpa_supplicant had to be explicitly specificied driver "wext" with WPA_DRIVER=wext to work properly.
(root) |> ~ <| netcfg Home
:: Home up [BUSY]
ok
> WPA Authentication/Association Failed [FAIL]
(root) |> ~ <| cat /etc/network.d/Home
CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID='XXX'
KEY='XXX'
IP='dhcp'
$ sudo netcfg 6-INFN-dot1x
:: 6-INFN-dot1x up [BUSY]
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
> Wireless network "INFN-dot1x" not present. [FAIL]
I tried to comment out HOSTNAME, SCAN and ESSID from profile file as lisaev suggested a few comments above, but it doesn't help:
$ sudo netcfg 6-INFN-dot1x
:: 6-INFN-dot1x up [BUSY]
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
> WPA Authentication/Association Failed [FAIL]
Again, downgrading to 2.5.4 makes everything work smoothly.
$ sudo netcfg 6-INFN-dot1x
:: 6-INFN-dot1x up [BUSY]
> WPA Authentication/Association Failed [FAIL]
Change default wpa driver to nl80211,wext - requires wpa_supplicant 0.7
specifically in src/connections/wireless:
- [[ -z "$WPA_DRIVER" ]] && WPA_DRIVER="wext"
+ [[ -z "$WPA_DRIVER" ]] && WPA_DRIVER="nl80211,wext"
Undoing this modification is sufficient to let my laptop connect to the 802.1x network. But I don't know what does it implies...
Could it generate a timeout problem? Is it worth to try increasing timeout as you suggested in the previous message? Thanks.
# NETCFG_DEBUG="yes" netcfg 8-test
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
:: 8-test up [BUSY]
DEBUG: status reported to profile_up as:
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up ifup
DEBUG: wireless_up scanning
DEBUG: find_essid "NETGEARSNACK"
DEBUG: wireless_up Configuration generated at /etc/wpa_supplicant.conf-test
DEBUG: wireless_up start_wpa wlan0 /etc/wpa_supplicant.conf-test wext
DEBUG: wireless_up wpa_check
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
DEBUG: ethernet_iproute_up ifup
DEBUG: ethernet_up dhcpcd -qL -t 10 wlan0
DEBUG:
DEBUG: ethernet_iproute_up hostname elric [DONE]
For 2.5.5:
# NETCFG_DEBUG="yes" netcfg 8-test
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
:: 8-test up [BUSY]
DEBUG: status reported to profile_up as:
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up ifup
DEBUG: wireless_up scanning
DEBUG: find_essid "NETGEARSNACK"
DEBUG: wireless_up Configuration generated at /etc/wpa_supplicant.conf-test
DEBUG: wireless_up start_wpa wlan0 /etc/wpa_supplicant.conf-test nl80211,wext
DEBUG: wireless_up wpa_check
> WPA Authentication/Association Failed
DEBUG: profile_up connect failed [FAIL]
For 2.6.7:
# netcfg 8-test
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
:: 8-test up [BUSY]
DEBUG: status reported to profile_up as:
DEBUG: Loading profile 8-test
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up start_wpa wlan0 /etc/wpa_supplicant.conf-test nl80211,wext
DEBUG: wireless_up scanning
DEBUG: wpa_cli -p /var/run/wpa_supplicant -i wlan0 scan
DEBUG: wpa_find_essid "NETGEARSNACK"
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up ifup
DEBUG: wireless_up start_wpa wlan0 /etc/wpa_supplicant.conf-test nl80211,wext
DEBUG: wireless_up wpa_check
DEBUG: wpa_cli -p /var/run/wpa_supplicant -i wlan0 status
> WPA Authentication/Association Failed
DEBUG: profile_up connect failed [FAIL]
Thank you very much for your support!