You are not logged in.
I'm trying to connect to a PEAP/MSCHAPV2 secured network with netcfg. I had some trouble with creating a working wpa_supplicant config file, but finally got it working -- manually. The following works like a charm:
# ifconfig wlan0 up; iwconfig wlan0 essid MyNetwork; wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf; dhcpcd wlan0
But netcfg fails:
# netcfg profile
:: profile 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
... 11 more lines like the above ...
- Authentication/association failed
[FAIL]
I can verify that wpa_supplicant has been successfully started and daemonized. My wpa_supplicant.conf is pretty bare (comments removed):
network={
ssid="MyNetwork"
key_mgmt=WPA-EAP
eap=PEAP
identity="MyID"
password="MyPassword"
phase2="auth=MSCHAPV2"
}
And my network profile:
CONNECTION="wireless"
DESCRIPTION="a description"
INTERFACE=wlan0
HOSTNAME=myhostname
IP=dhcp
ESSID=MyNetwork
SECURITY=wpa-config
SCAN="YES"
WPA_CONF=/etc/wpa_supplicant.conf
I've googled and searched the forums, but can't figure out what netcfg is doing wrong. Any ideas/links/divine revelations are appreciated.
Trent
(edit: premature post)
Last edited by Trent (2009-08-26 12:20:28)
Offline
I can reproduce this by starting wpa_supplicant and then trying to connect to it with wpa_cli. wpa_supplicant itself works fine (as I mentioned above) but wpa_cli can't seem to connect to it. Possibly a bug in wpa_cli?
Since wpa_supplicant works by itself, and netcfg works on all my other networks, I did the hackish thing and commented out the wpa_check code in /usr/lib/network/connections/wireless under wpa-config. It's not the best solution, but I have automatic wireless now.
If anybody can shed light on this (bug? issue? misconfiguration?) I'd still be interested to hear about it.
Offline
Do you have the ctrl_interface variable set in wpa_supplicant.conf?
Offline
Nope. Wow, it seems so obvious when you call attention to it. Oh well, I guess that's what forums are for.
Offline