Check traffic quota / rlm_sqlcounter

Mordor Networks mordor.networks at gmail.com
Sun Apr 11 12:01:18 CEST 2010


would u please show me the code u used?

On Fri, Apr 9, 2010 at 4:27 PM, Alexander <alexander_austria at yahoo.com>wrote:

> --- On Wed, 4/7/10, Alan DeKok <aland at 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
>
>
>
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100411/201e1321/attachment.html>


More information about the Freeradius-Users mailing list