rlm_sqlcounter and something else than Session-Timeout

Nicolas Baradakis nbk at sitadelle.com
Tue Dec 20 11:47:36 CET 2005


Damjan wrote:

> I limit users by bytes transfered, so I need to sum AcctInputOctets
> and AcctOutputOctets, compare that sum to a check attribute (let's
> call it Max-All-Transfer) and return a coresponding
> ChilliSpot-Max-Total-Octets.
>
> I beleive this is not configurable in rlm_sqlcounter?

Indeed.

> I could try to make a patch if someone is willing to help me and guide
> me a bit.

I'd suggest to make the reply attribute user-defined (like the check
attribute). You might add an option "reply-name" with "Session-Timeout"
as the default value, so it doesn't break someone else's setup.

-- 
Nicolas Baradakis




More information about the Freeradius-Users mailing list