WPA supplicant configuration error??

hareesh.khattri at ndsu.edu hareesh.khattri at ndsu.edu
Wed Mar 16 22:35:18 EST 2005


hi

  I am trying to get the hostapd to connect to an access point with
minimal authentication features( to test the conection and then later
and other configurations).

 My wpa supplicant configuration is:

network={
	ssid="test"
	mode=0
	key_mgmt=NONE
	eap=MD5
	identity="user at example.com"
	password="password"
	priority=2
}

 The access point is running the hostapd. The WPA supplicant scans and
associates with the access point but the EAP authentication fails. This
is the output I get from the WPA supplicant


 selected non-WPA AP 00:02:6f:37:26:b6 ssid='test'
Trying to associate with 00:02:6f:37:26:b6 (SSID='test' freq=2422 MHz)
Cancelling scan request
Automatic auth_alg selection: 0x1
No keys have been configured - skip key clearing
wpa_driver_hostap_set_drop_unencrypted: enabled=0
wpa_driver_hostap_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Added BSSID 00:00:00:00:00:00 into blacklist
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Disconnect event - remove keys
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Disconnect event - remove keys
Wireless event: cmd=0x8b04 len=12
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Disconnect event - remove keys
Wireless event: cmd=0x8b1a len=17
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:02:6f:37:26:b6
Association event - clear replay counter
Associated to a new BSS: BSSID=00:02:6f:37:26:b6
Associated with 00:02:6f:37:26:b6
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Cancelling authentication timeout
EAP: EAP entering state FAILURE


The status as shown through the wpa_cli is like this:


> status
bssid=00:02:6f:37:26:b6
ssid=test
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=NONE
wpa_state=ASSOCIATED
Supplicant PAE state=UNKNOWN
suppPortStatus=Authorized
EAP state=FAILURE
>

At the Access point side the hostapd gives these messages.

# ./hostapd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
Opening raw packet socket for ifindex 6
Using interface wlan0 with hwaddr 00:02:6f:37:26:b6 and ssid 'test'
wlan0: RADIUS Authentication server 134.129.123.204:1812
wlan0: RADIUS Accounting server 134.129.123.204:1813
Sending RADIUS message to accounting server
Next RADIUS client retransmit in 3 seconds
Flushing old station entries
Deauthenticate all stations
Wireless event: cmd=0x8c04 len=20
Received 20 bytes from RADIUS server
Received RADIUS message
Received RADIUS packet matched with a pending request, round trip time
0.09 sec
Received 30 bytes management frame
MGMT
mgmt::auth
authentication: STA=00:0d:88:70:78:ec auth_alg=0 auth_transaction=1
status_code0  New STA
authentication reply: STA=00:0d:88:70:78:ec auth_alg=0 auth_transaction=2
resp=0Received 30 bytes management frame
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 00:0d:88:70:78:ec IEEE 802.11: authenticated
Received 40 bytes management frame
MGMT
mgmt::assoc_req
association request: STA=00:0d:88:70:78:ec capab_info=0x01 listen_interval=10
  new AID 1
Received 36 bytes management frame
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 00:0d:88:70:78:ec IEEE 802.11: associated (aid 1, accounting
session)Sending RADIUS message to accounting server



 Can any one please point out what is wrong with the configuration I am
using and why the EAP authentication fails.

Thanks

Hareesh Khattri




More information about the HostAP mailing list