Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant with -Dwired fails to start from net scripts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jachcemjest
n00b
n00b


Joined: 10 Jul 2007
Posts: 12

PostPosted: Tue Jul 10, 2007 8:30 pm    Post subject: wpa_supplicant with -Dwired fails to start from net scripts Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 10, 2007 11:31 pm    Post subject: Reply with quote

What's in wpa_supplicant.conf?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
jachcemjest
n00b
n00b


Joined: 10 Jul 2007
Posts: 12

PostPosted: Wed Jul 11, 2007 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message
jachcemjest
n00b
n00b


Joined: 10 Jul 2007
Posts: 12

PostPosted: Wed Jul 18, 2007 9:19 am    Post subject: Reply with quote

No one could help?
I'm using wpa_supplicant 0.5.7
Any suggestions where to look?
Back to top
View user's profile Send private message
jachcemjest
n00b
n00b


Joined: 10 Jul 2007
Posts: 12

PostPosted: Sat Jul 21, 2007 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Jul 21, 2007 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message
jachcemjest
n00b
n00b


Joined: 10 Jul 2007
Posts: 12

PostPosted: Sat Jul 21, 2007 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum