From owner-freebsd-wireless@FreeBSD.ORG Wed May 20 16:37:12 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0981F7FA; Wed, 20 May 2015 16:37:12 +0000 (UTC) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E4F3118F; Wed, 20 May 2015 16:37:11 +0000 (UTC) Received: by wicmx19 with SMTP id mx19so161424584wic.0; Wed, 20 May 2015 09:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=z2EKq9K4TR91qoGVYkuOqTncUU3lH6bIF76yjeEdWSE=; b=tGNB9YK+RJ7w/rl/M/D47zES30ONtNriS78k7ikJiCwcV+CI+idsbLLmgKorXZrrtC SAVE92LgIbt1cYAutd6vxnnJVX/KUs/MNtmIG+UyGMd3aCalIm4vo6sx2CAomx9KnwfL tbLCOvuf2yd2vSU8M4F/As7Ajyuu7bo/IdcneLGfaCVpqIdMqw0zydu0xRLfGGGFz76F WMFazZ8ph+YX42BuBvQrdueL5gFCm5OO0N+zkDLOe9gXCGLnSpEVecI0iJKoGjCn9aVa WBZzcHmi9BRQl5Nphb6ZVBayW0+7jTWa+RMGWUrZKqwxl7rUvOg5OOeZ50sJxIu+qVcT RAmw== X-Received: by 10.194.204.230 with SMTP id lb6mr56048397wjc.63.1432139829968; Wed, 20 May 2015 09:37:09 -0700 (PDT) Received: from ?IPv6:2001:4200:7000:100:9807:19f4:3109:40dd? ([2001:4200:7000:100:9807:19f4:3109:40dd]) by mx.google.com with ESMTPSA id b10sm4335318wic.1.2015.05.20.09.37.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2015 09:37:09 -0700 (PDT) Message-ID: <555CB82D.9090501@gmail.com> Date: Wed, 20 May 2015 18:37:01 +0200 From: Johann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Adrian Chadd CC: "freebsd-wireless@freebsd.org" Subject: Re: hostapd + freeradius can't connect References: <01e701d08d75$fed02bd0$fc708370$@gmail.com> <003c01d08dbe$6018b900$204a2b00$@gmail.com> <555CB658.6040103@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 16:37:12 -0000 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 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"