"Yuri Bazhukov" <[EMAIL PROTECTED]> wrote:
> Can I do SQL queries recursive? For example, I want to put in radreply
> something like next:
>
> Attribute Value
> Session-Timeout select get_session_timeout('%u') from table
I don't think you can do this right now. The attribute parser
probably needs to be upgraded.
e.g. Session-Time = %{sql:stuff}
is different than:
Session-Timeout = "%{sql:stuff}"
Right now, only the second one is looked at.
Adding this feature will require minor changes to the server. I
hope to do this before 0.6. The value-pair data structure needs to
have a special flag set for 'xlat', and various pieces of the code in
the kernel need to be updated to deal with this. (paircmp, etc)
As always, patches are welcome.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html