Date: Wed, 20 May 2015 18:37:01 +0200 From: Johann <jhugo.meraka@gmail.com> To: Adrian Chadd <adrian@freebsd.org> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: hostapd + freeradius can't connect Message-ID: <555CB82D.9090501@gmail.com> In-Reply-To: <CAJ-VmonyjHDFDDFchf6uPWZ_2fT1m_buozB3ttgj2sw9S1jRCg@mail.gmail.com> References: <01e701d08d75$fed02bd0$fc708370$@gmail.com> <CAJ-VmokxL6Zz=K2p9zeg84_EF5zr6Kk4mWv=oxt2FA59JktA0w@mail.gmail.com> <003c01d08dbe$6018b900$204a2b00$@gmail.com> <CAJ-Vmo=anQCxvHq1jCR9bNk2OCjfye5gV_74jeWcr%2BOdBd1WWw@mail.gmail.com> <555CB658.6040103@gmail.com> <CAJ-VmonyjHDFDDFchf6uPWZ_2fT1m_buozB3ttgj2sw9S1jRCg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You need a valid user on the freeradius server. You can add something like this at the end of the /usr/local/etc/raddb/users file. "wifi" User-Password == "test" Then you add that to wpa_supplicant On 2015/05/20 06:31 PM, Adrian Chadd wrote: > Hm, what do I use for the username/password field in wpa_supplicant? > > > -a > > > On 20 May 2015 at 09:29, Johann <jhugo.meraka@gmail.com> wrote: >> On 2015/05/16 08:03 AM, Adrian Chadd wrote: >>> Hi, >>> Has this ever worked? >> >> Yes. >> >> I got it working in April 2012 on FreeBSD 8 and 9. I've used a FreeRadius >> server and a FreeBSD client with wpa_supplicant to test it. >> >> At that stage you had to enable the eap_server when you compile hostapd >> >> # echo HOSTAPD_CFLAGS+=-DEAP_SERVER >> /etc/src.conf >> # cd /usr/src/usr.sbin/wpa/hostapd >> # make >> # make install >> >> but Bernhard Schmidt fixed it so that EAP_SERVER was enabled by default. >> >> >> Here is the configs that I used: >> >> rc.conf >> hostname="AP-vlan" >> wlans_ath0="wlan0" >> create_args_wlan0="wlanmode hostap country ZA" >> ifconfig_wlan0="146.64.5.5/24 mode 11g channel 6" >> defaultrouter="146.64.5.1" >> hostapd_enable="YES" >> cloned_interfaces="bridge0" >> ifconfig_bridge0="addm sis0 addm wlan0 up" >> ifconfig_sis0="up" >> >> >> hostapd.conf >> interface=wlan0 >> ctrl_interface=/var/run/hostapd >> ctrl_interface_group=wheel >> ssid=testAP >> hw_mode=g >> channel=6 >> >> wpa=1 >> wpa_pairwise=CCMP TKIP >> wpa_key_mgmt=WPA-EAP >> wpa_pairwise=TKIP CCMP >> rsn_pairwise=CCMP >> >> Hope it helps >> >> Regards >> Johann >> >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?555CB82D.9090501>