From: Jouni Malinen Date: Mon, 10 Mar 2014 09:05:48 +0000 (+0200) Subject: tests: RADIUS attributes in Access-Request and Accounting-Request X-Git-Tag: hostap_2_2~615 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b92c6cfe095f3c6ead6a3b2c23caff182ca055;p=thirdparty%2Fhostap.git tests: RADIUS attributes in Access-Request and Accounting-Request This verifies that hostapd can add extra RADIUS attributes using radius_auth_req_attr and radius_acct_req_attr. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index b6315302d..881333c9a 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -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")