View previous topic :: View next topic |
Author |
Message |
jachcemjest n00b
Joined: 10 Jul 2007 Posts: 12
|
Posted: Tue Jul 10, 2007 8:30 pm Post subject: wpa_supplicant with -Dwired fails to start from net scripts |
|
|
I am connecting to ethernet network that requires ieee 802.1x authentication. I am using wpa_supplicant to authenticate.
Manual startup:
Code: | jachcemjest ~ # ifconfig eth0 up
jachcemjest ~ # wpa_supplicant -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B -D wired
jachcemjest ~ # dhcpcd eth0
|
works well and I get proper IP.
I'd like to authenticate for the network in the startup. My /etc/conf.d/net:
Code: | modules=( "wpa_supplicant" "!iwconfig" "dhcpcd" )
wpa_supplicant_eth0="-Dwired"
wpa_timeout_eth0=15
config_eth0=( "dhcpcd" )
|
After starting the network I get:
Code: | jachcemjest ~ # /etc/init.d/net.eth0 start
* Caching service dependencies ... [ ok ]
* Starting eth0
* Starting wpa_supplicant on eth0 ... [ ok ]
* Starting wpa_cli on eth0 ...
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory [ !! ]
|
Is something wrong with config? Or some other problem?
I'll appreciate any help. |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Tue Jul 10, 2007 11:31 pm Post subject: |
|
|
What's in wpa_supplicant.conf? _________________ Thomas S. Howard |
|
Back to top |
|
|
jachcemjest n00b
Joined: 10 Jul 2007 Posts: 12
|
Posted: Wed Jul 11, 2007 6:29 am Post subject: |
|
|
Code: | ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=0
fast_reauth=1
network={
key_mgmt=IEEE8021X
eap=TTLS
identity="libip2am"
anonymous_identity="whatever"
password="passwd"
ca_cert="/etc/wpa_supplicant/cacert.pem"
phase2="auth=PAP"
}
|
I'm pretty sure this is correct. When I run it manually it works fine. |
|
Back to top |
|
|
jachcemjest n00b
Joined: 10 Jul 2007 Posts: 12
|
Posted: Wed Jul 18, 2007 9:19 am Post subject: |
|
|
No one could help?
I'm using wpa_supplicant 0.5.7
Any suggestions where to look? |
|
Back to top |
|
|
jachcemjest n00b
Joined: 10 Jul 2007 Posts: 12
|
Posted: Sat Jul 21, 2007 9:46 am Post subject: |
|
|
So.. the problem was totally lame (of course)
The wpa_supplicant.conf file had \r\n end of lines.
The initscripts can't handle it and the wpa_cli got as parameter for control interface something wrong.... |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Jul 21, 2007 11:23 am Post subject: |
|
|
Sorry I didn't get back to you on this. I couldn't see anything wrong with the config though. Never even considered the old <CR><LF> issue. How did the carriage returns end up in there anyway? _________________ Thomas S. Howard |
|
Back to top |
|
|
jachcemjest n00b
Joined: 10 Jul 2007 Posts: 12
|
Posted: Sat Jul 21, 2007 3:47 pm Post subject: |
|
|
I was reinstalling my system and backed up the data via FTP.... I thing in one direction it was text and in the other binary transfer.... |
|
Back to top |
|
|
|