Hi, Is it possible to reference a script from within sql.conf? I'd like to do some checks and inserts on the sql database just before the auth_check query in sql.conf. Whats the best way of doing this? Thanks Maqbool
Maqbool Hashim <maqbool.hashim@sohonet.co.uk> wrote:
Is it possible to reference a script from within sql.conf? I'd like to do some checks and inserts on the sql database just before the auth_check query in sql.conf. Whats the best way of doing this?
rlm_exec. List it before "sql". Alan DeKok.
Thanks. Will this allow me to run 1 of a number of queries in sql.conf depending on whats in the access-request the server receives? So I need to run some queries every time an access-request packet is received and then choose which authorize query to run in sql.conf. Alan DeKok wrote:
Maqbool Hashim <maqbool.hashim@sohonet.co.uk> wrote:
Is it possible to reference a script from within sql.conf? I'd like to do some checks and inserts on the sql database just before the auth_check query in sql.conf. Whats the best way of doing this?
rlm_exec. List it before "sql".
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Maqbool Hashim <maqbool.hashim@sohonet.co.uk> wrote:
Will this allow me to run 1 of a number of queries in sql.conf
You said "script" not "additional queries". Please describe *accurately* what you want to do. Giving information in bits and pieces is annoying.
So I need to run some queries every time an access-request packet is received and then choose which authorize query to run in sql.conf.
The SQL module supports only one authorize query. So that won't work. Alan DeKok.
Hi Hashim, please look at http://lists.freeradius.org/pipermail/freeradius-devel/2006-February/009440. html I've done it simply adding a call to a function defined on database (mySQL) in an existing query. Ragards
participants (3)
-
Alan DeKok -
Carlo Prestopino -
Maqbool Hashim