18 Jun
2018
18 Jun
'18
7:52 a.m.
On Jun 16, 2018, at 10:18 AM, Thore Krüss <thore@scimeda.de> wrote:
in a wifi setup we almost had the same requirements (the networks to choose from where a bit different, but that's beside the point).
What I did was to save an ip-pool name with the user attribute in the radcheck table (https://wiki.freeradius.org/guide/SQL-HOWTO-for-freeradius-3.x-on-Debian-Ubu...). ... Then the pool name gets logged to radpostauth (you have to alter the query to do so). The dhcp module then queries radpostauth for the last successful authentication from the given mac address and now has the pool-name to work with in the dhcp-ippool module.
That's a lot simpler. I'll see if that can get written up in the docs as a suggestion. Alan DeKok.