]> git.ipfire.org Git - thirdparty/hostap.git/commit
Extra RADIUS request attributes from SQLite
authorTerry Burton <tez@terryburton.co.uk>
Sun, 21 Jul 2019 12:05:56 +0000 (13:05 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 30 Jul 2019 16:58:09 +0000 (19:58 +0300)
commitf4111ff3d1f19d219f3818f72cbfab80da10754a
tree722314a9f298cbe01473ab34c1d86847bd1e0dfd
parent74707def8f1b8cdb1755f4f5698bb52b9c8a5442
Extra RADIUS request attributes from SQLite

Add an SQLite table for defining per station MAC address version of
radius_auth_req_attr/radius_acct_req_attr information. Create the
necessary table and index where this doesn't exist. Select attributes
from the table keyed by station MAC address and request type (auth or
acct), parse and apply to a RADIUS message.

Add radius_req_attr_sqlite hostapd config option for SQLite database
file. Open/close RADIUS attribute database for a lifetime of a BSS and
invoke functions to add extra attributes during RADIUS auth and
accounting request generation.

Signed-off-by: Terry Burton <tez@terryburton.co.uk>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/accounting.c
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/hostapd.c
src/ap/hostapd.h
src/ap/ieee802_1x.c
src/ap/ieee802_1x.h