]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: RADIUS attributes in Access-Request and Accounting-Request
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 10 Mar 2014 09:05:48 +0000 (11:05 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 10 Mar 2014 09:05:48 +0000 (11:05 +0200)
This verifies that hostapd can add extra RADIUS attributes using
radius_auth_req_attr and radius_acct_req_attr.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_radius.py

index b6315302d0b89128b4fefde7ad786a2310ab9c39..881333c9a3e5755ee586d70aeb78c54c1c0cd3a1 100644 (file)
@@ -63,6 +63,8 @@ def test_radius_acct(dev, apdev):
     params['acct_server_addr'] = "127.0.0.1"
     params['acct_server_port'] = "1813"
     params['acct_server_shared_secret'] = "radius"
+    params['radius_auth_req_attr'] = [ "126:s:Operator", "77:s:testing" ]
+    params['radius_acct_req_attr'] = [ "126:s:Operator", "77:s:testing" ]
     hostapd.add_ap(apdev[0]['ifname'], params)
     hapd = hostapd.Hostapd(apdev[0]['ifname'])
     connect(dev[0], "radius-acct")