EAP-TLS + PSK : Unsupported EAP type 'PSK'

Dan Williams dcbw at redhat.com
Wed Jul 16 09:48:36 EDT 2014


On Wed, 2014-07-16 at 11:16 +0200, Léo Peltier wrote:
> Hi,
> 
> I'm currently setting up access points that need both EAP-TLS
> authentication and a PSK when an user need to access the device
> directly. This works using 'hostapd v0.7.3' on Ubuntu 12.04 (i386) using the
> following config:
> 
> hostapd.conf (shortened):
> > wpa_key_mgmt=WPA-EAP WPA-PSK
> > wpa_psk=deadb33fdeadb33fdeadb33fdeadb33fdeadb33fdeadb33fdeadb33fdeadb33f
> > eap_user_file=/path/to/users
> 
> users:
> > "some-prefix-"* TLS
> > * PSK deadb33fdeadb33fdeadb33fdeadb33fdeadb33fdeadb33fdeadb33fdeadb33f
> 
> I'm now setting up the same thing on an Arduino Yùn using the latest
> OpenWrt-Yun HEAD and 'hostapd v2.1-devel'. Using the same configuration,
> hostapd exits immediately with the following output:
> 
> > $ hostapd -dd /var/run/hostapd-phy0.conf
> > Configuration file: /var/run/hostapd-phy0.conf
> > Unsupported EAP type 'PSK' on line 2 in '/var/run/hostapd-eap'
> > 1 errors found in configuration file '/var/run/hostapd-phy0.conf'
> > Failed to set up interface with /var/run/hostapd-phy0.conf
> > Failed to initialize interface

Is the hostapd on OpenWrt-Yun built with EAP-PSK enabled?  eg,
CONFIG_EAP_PSK=y in the build config.

Dan

> After reading the code and diffing the bits that seemed relevant in
> both versions, I could not find anything obvious.
> hostapd_config_read_eap_user() (where the error originates) does not
> change between versions and nothing seemed off where eap_methods are
> registered.
> 
> Is this really a bug of am I doing something wrong?
> 
> If it is indeed a bug, where should I look to fix it? I don't have a
> development environment set up for the Arduino and I don't know the
> codebase, so I can do little besides riddling the code with printf()
> calls.
> 
> Thanks.
> 
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap




More information about the HostAP mailing list