Hi Duane
If you use a DB backend that supports stored procedures
(like mysql 5) you can make a procedure in your mysql server containing several
queries.
You can even use IF THEN ELSE structures,
and call that procedure from post-auth as a single
query.
like : postauth_query = "call
postauth1('%{SQL-User-Name}');"
this calls the stored procedure postauth1 and gives the
sql user name as parameter for the procedure to work with.
Maybe that solves your problem :)
Good luck!
Jurgen van Vliet
WANBound
Technologies | Veldzigt 28 | 3454 PW De Meern | The
Netherlands Tel: +31 30 66 61
940 | Fax: +31 30 66
64 339 | Email: [EMAIL PROTECTED] | Website:
www.wanbound.com
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Duane Cox Verzonden: donderdag 13 juli 2006 16:32 Aan: FreeRadius users mailing list Onderwerp: Re: multiple post-auth sql queries, possible? Is it possible to run a module twice in one
section...
meaning can I run the sql module twice in the
post-auth section ?
I am thinking I could, but I would have to call it
by a new name and then copy the lib files to also this new name.
Thanks
Duane Cox
|
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html