9 Apr
2010
9 Apr
'10
9:27 a.m.
--- On Wed, 4/7/10, Alan DeKok <aland@deployingradius.com> wrote:
See "man unlang"
In the "authorize" section, do:
if ("%{sql: SELECT ...quota ...}" <= "%{sql:SELECT ... usage ...}") { reject }
Finally I got it to work. Thanks! Only drawback is that there must be traffic quota configured per user otherwise I get an access reject because of the SQL query. Is it possible to first check if there is a user traffic quota and if not fallback to the group traffic quota? Cheers, Alexander