Bug #3562
closedWireless Radius Setup Fails - partially due to empty config strings
0%
Description
Been trying to get WPA2-Enterprise with freeradius auth setup with an onboard wireless interface. The settings were right, but the interface refused to switch out of OPEN mode. After digging through the wireless config it appears that the culprit is at least partially a result of empty secondary radius server data in the hostapd conf file generated by interface_wireless_configure in interfaces.inc.
If the Secondary 802.1X Auth Server IP Address or the Secondary 802.1X Auth Server Shared Secret are empty then the resulting config at /var/etc/hostapd_<iface>.conf includes those variables, but leaves them blank. This results in the call to hostapd with that config to silently fail with an " invalid IP address '' " and "empty shared secret is not allowed".
There's a simple enough workaround to just copy and paste the primary 802.1x auth server ip and key to at least have something in those fields when the config is automagically regenerated.
The real fix would be to modify the interfaces.inc script starting around line 2562 to only output the auth_server_port and auth_server_shared_secret if the corresponding values were actually set.
Making the changes got the interface to come up properly and presented a WPA2-Enterprise username / password field to wireless clients, but I still haven't successfully managed to get the clients to authenticate.
Updated by Phillip Davis over 10 years ago
Are you testing with 2.1.1 snapshots? It looks like this is fixed by https://github.com/pfsense/pfsense/commit/26ea40b7f1b0718415247c47077ee8e665888819 in 2.1.1 and by https://github.com/pfsense/pfsense/commit/315bdf65a12337f150bde11d95824528d90068be in master.
Updated by Chris Buechler over 10 years ago
- Status changed from New to Feedback
- Target version deleted (
2.1.1)
Updated by Chris Buechler over 10 years ago
- Target version set to 2.2
does look like this is fixed as Phil noted, leaving for confirmation for 2.2
Updated by Chris Buechler about 10 years ago
- Status changed from Feedback to Resolved