Hello,
I’m using postgres and freeradius2
rad_reply and rad_check11 are pl/pgsql functions called by freeradius
radius=# select * from rad_check11('00:15:c5:0f:f0:45');
id | UserName | Attribute | Value | Op
----+-------------------+--------------------+----------+----
1 | 00:15:c5:0f:f0:45 | Reply-Message | "Not in system" | :=
0 | 00:15:c5:0f:f0:45 | Auth-Type | Reject | :=
radius=# select * from rad_reply('00:15:c5:0f:f0:45');
id | UserName | Attribute | Value | Op
----+-------------------+-----------------------+--------------------------------------------------------+----
0 | 00:15:c5:0f:f0:45 | Reply-Message | "Not in system" | :=
1 | 00:15:c5:0f:f0:45 | WISPr-Redirection-URL | https://www.myhotspot.com/signup | :=
What i’m trying to do here is reject certain user with a reason given and redirect him to a signup page.
In this exaple user is not in the system
How would i populate radcheck and radreply tables to accomplish this?
Thank you!