From 49897fb0651e18d8a96f797593f34fee64f130a9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 26 Dec 2016 18:39:49 +0200 Subject: [PATCH] tests: Invalid VLAN ID from RADIUS server for ACL Signed-off-by: Jouni Malinen --- tests/hwsim/auth_serv/eap_user.conf | 3 +++ tests/hwsim/test_radius.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index b85b9c5eb..aebcd2556 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -71,6 +71,9 @@ radius_accept_attr=27:d:3 radius_accept_attr=1:s:test-user radius_accept_attr=89:s:macacl-cui-test +"020000000200" MACACL "020000000200" +radius_accept_attr=56:x:32000011 + "0232010000000000@ttls" TTLS,AKA "0232010000000000@peap" PEAP,AKA "0232010000000000@fast" FAST,AKA diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index db8489916..9a95cd20c 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -789,6 +789,12 @@ def test_radius_macacl(dev, apdev): hostapd.add_ap(apdev[0], params) dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412") + # Invalid VLAN ID from RADIUS server + dev[2].connect("radius", key_mgmt="NONE", scan_freq="2412") + dev[2].request("REMOVE_NETWORK all") + dev[2].wait_disconnected() + dev[2].connect("radius", key_mgmt="NONE", scan_freq="2412") + def test_radius_macacl_acct(dev, apdev): """RADIUS MAC ACL and accounting enabled""" params = hostapd.radius_params()