Browse Source

tests: RADIUS MAC ACL

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 11 years ago
parent
commit
19d64886ef
2 changed files with 10 additions and 0 deletions
  1. 2 0
      tests/hwsim/auth_serv/eap_user.conf
  2. 8 0
      tests/hwsim/test_radius.py

+ 2 - 0
tests/hwsim/auth_serv/eap_user.conf

@@ -25,6 +25,8 @@ radius_accept_attr=25:x:00112233445566778899
 radius_accept_attr=89:s:gpsk-chargeable-user-identity
 radius_accept_attr=25:x:00112233445566778899aa
 
+"020000000000"	MACACL	"020000000000"
+
 "0"*		AKA
 "1"*		SIM
 "2"*		AKA

+ 8 - 0
tests/hwsim/test_radius.py

@@ -476,3 +476,11 @@ def test_radius_ipv6(dev, apdev):
     params['own_ip_addr'] = "::0"
     hostapd.add_ap(apdev[0]['ifname'], params)
     connect(dev[0], "radius-ipv6")
+
+def test_radius_macacl(dev, apdev):
+    """RADIUS MAC ACL"""
+    params = hostapd.radius_params()
+    params["ssid"] = "radius"
+    params["macaddr_acl"] = "2"
+    hostapd.add_ap(apdev[0]['ifname'], params)
+    dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412")