FS#25473 - netcfg 2.6.6 fails to connect to ethernet with 802.11x auth
Attached to Project:
Arch Linux
Opened by Tomasz Żok (tzok) - Tuesday, 09 August 2011, 06:57 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Saturday, 13 August 2011, 16:13 GMT
Opened by Tomasz Żok (tzok) - Tuesday, 09 August 2011, 06:57 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Saturday, 13 August 2011, 16:13 GMT
|
Details
Description:
My netcfg profile is a wired ethernet, static configuration with 802.11x authentication (it is listed in the end of this bugreport). It was working with netcfg 2.5.x for a long time - now after upgrading to netcfg 2.6.6 yesterday I cannot connect anymore: # NETCFG_DEBUG=1 netcfg eduroam DEBUG: Loading profile eduroam DEBUG: Configuring interface eth0 :: eduroam up [BUSY] DEBUG: status reported to profile_up as: DEBUG: Loading profile eduroam DEBUG: Configuring interface eth0 DEBUG: ethernet_iproute_up ifup DEBUG: ethernet_iproute_up start_wpa eth0 /etc/wpa_supplicant.conf.eduroam wired DEBUG: wpa_cli -p -i eth0 status 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 DEBUG: profile_up connect failed It seems that the argument for `wpa_cli -p` is missing. I looked into the /usr/lib/network/8021x and confirmed this. There are invocations `wpa_cli -p $WPA_CTRL_PATH ...` but the WPA_CTRL_PATH variable is not set anywhere and the documentation does not say that it should be done by the user: http://projects.archlinux.org/netcfg.git/tree/docs/netcfg-profiles.txt However, the WPA_CTRL_PATH is being set inside /usr/lib/network/connections/wireless or /usr/lib/network/connections/wireless-dbus: WPA_CTRL_PATH=/run/wpa_supplicant So I guess it is just some random omission in the 80211x file. Next thing, I did these: - set WPA_CTRL_PATH=/run/wpa_supplicant - netcfg still failed with "No such file or directory" - strace showed that the file being searched for is /run/wpa_supplicant/eth0, so I added it (an empty file) - then I got this error: "Failed to connect to wpa_supplicant - wpa_ctrl_open: Connection refused" Additional information: - my netcfg profile: CONNECTION='ethernet' INTERFACE='eth0' IP='static' ADDR='x.x.x.x' GATEWAY='y.y.y.y' DNS=('127.0.0.1') AUTH8021X='yes' WPA_CONF='/etc/wpa_supplicant.conf.eduroam' - netcg 2.5.5 works without any problems, netcfg 2.6.6 fails to connect - I use this profile and this network at my work, where I am from Monday to Wednesday. I will be happy to provide some more information and maybe test some improvements/patches, but of course it is limited to these three days a week. |
This task depends upon
Closed by Rémy Oudompheng (remyoudompheng)
Saturday, 13 August 2011, 16:13 GMT
Reason for closing: Fixed
Additional comments about closing: Fix will be released in netcfg 2.6.8
Saturday, 13 August 2011, 16:13 GMT
Reason for closing: Fixed
Additional comments about closing: Fix will be released in netcfg 2.6.8