tests: Invalid VLAN ID from RADIUS server for ACL

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-12-26 18:39:49 +02:00
parent fedce55a00
commit 49897fb065
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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()