Authorize all users, and use radius attributes
andres.gomez.ruiz at gmail.com
Mon Oct 23 15:09:38 CEST 2017
My network uses a captive portal to show an user information and it has a
simple "I Accept" button to login. When user clicks thar button, my web
application sends to the radius server the user MAC address like username
and the numbers "123456" as password.
Because every user must login, I have to authotize every request. So I did
this in users file:
DEFAULT Auth-Type := Accept
Everything works fine!
I'm using a SQL database, and some of those MAC address are stored in the
radcheck table and have records in radrepply table in order to use some
radius attributes like "Session-Timeout = 3600".
I didn't enable the use of SQL in the authorization section on
sites-enabled/default because some times the MAC address is not recorded in
the radcheck table. But nevertheless, I have to authorize it.
How can I answer with an Accept response every request, but make a query
and if exists any record on radrepply table, give those attributes in the
Thanks in advance. Best regards.
*C. Andrés Gómez R.*
More information about the Freeradius-Users