Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78367 - Problem with baselayout-1.11.8 and 802.1X
Summary: Problem with baselayout-1.11.8 and 802.1X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-01-17 07:19 UTC by Marc Bourget
Modified: 2005-01-31 00:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes EAP (wpa_supplicant.patch,1.19 KB, patch)
2005-01-17 09:21 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Bourget 2005-01-17 07:19:40 UTC
When my net.ath0 start I get this error: 
 

Code:



 cpdc0w ~ # /etc/init.d/net.ath0 start 
  * Starting ath0 
  *    Starting wpa_supplicant on ath0 ... 
 /lib/rcscripts/net.modules.d/wpa_supplicant: array assign: line 86: syntax error near unexpected token `(' 
 /lib/rcscripts/net.modules.d/wpa_supplicant: array assign: line 86: `IEEE 802.1X (no WPA)' 
 


 
 When I execute wpa_cli -iath0 status I have: 
 

Code:



 cpdc0w ~ # wpa_cli -iath0 status 
 bssid=00:11:20:45:9b:10 
 ssid=BELL 
 pairwise_cipher=NONE 
 group_cipher=NONE 
 key_mgmt=IEEE 802.1X (no WPA) 
 wpa_state=ASSOCIATED 
 Supplicant PAE state=AUTHENTICATED 
 suppPortStatus=Authorized 
 EAP state=SUCCESS 
 selectedMethod=17 (EAP-LEAP) 
 


 
 The 802.1x phase is negociated OK thus I only have to do: 
 

Code:



 cpdc0w ~ # dhcpcd ath0 
 


 
 and the interface come up. 
 
 It seems that there is a bug in /lib/rcscripts/net.modules.d/wpa_supplicant when the variable substitution takes place: 
 

Code:



 wpa_supplicant_associated() { 
         local -a status=( $( wpa_cli -i${1} status | awk -F= '/^key_mgmt|^wpa_state|^decision/ { print $2 }' ) ) 
 
         if [[ ${status[0]} == NONE ]]; then 
                 [[ ${status[1]} == ASSOCIATED ]] 
         else 
                 [[ ${status[2]} == COND_SUCC ]] 
         fi 
         return $? 
 } 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
The 802.1X authentication is done but dhcpcd in not started.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-01-17 08:01:23 UTC

*** This bug has been marked as a duplicate of 74637 ***
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-01-17 08:17:29 UTC
Damn - it's not a dupe :/

Patch coming
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-01-17 09:21:39 UTC
Created attachment 48762 [details, diff]
fixes EAP

Please test patch and report back
Comment 4 Marc Bourget 2005-01-17 09:38:17 UTC
Job well done guys! It worked!
Thanks a lot.

This bug can now be closed.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-01-17 09:49:43 UTC
In CVS - will be in baselayout-1.11.9

I'll mark the bug as FIXED when it hits portage :)
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-01-31 00:03:43 UTC
Fixed by baselayout-1.11.9