At 02:12 PM 12/18/2001 -0800, power jessie wrote:

>Thank you very much Sir Alan! you rock :)
>
>I've successfuly configured freeradius 0.4
>in my freebsd box, and it seems to be working
>very well now. i have a cisco nas configured too
>and the aaa via the mysql module.
>
>My problem now is that I want to implement
>ICradius' 'Monthly-Time-Limit' and 'Total-Time-Limit'
>attributes but there seems to be no support yet to these
>in freeradius.  Am I right or is it supported already?
>
>If not, is there a way I can do this in freeradius?
>Any suggestions?

Use the 'counter' module!  See the comments/example in 'radiusd.conf':

         #  This module takes an attribute (count-attribute), which MUST
         #  be an 'integer' or 'time' attribute.  It also takes a key,
         #  and creates a counter for each unique key.  The count is
         #  incremented when accounting packets are received by the
         #  server.  The value of the increment is the value of the
         #  count-attribute.
         #
         #  The 'reset' parameter defines when the counters are all reset to
         #  zero.  It can be hourly, daily, weekly, or monthly.
         #
         #  The counter-name is the name of the attribute in the 'users'
         #  file used to access that counter.  e.g.
         #
         #  DEFAULT  Daily-Session-Time > 3600, Auth-Type = Reject
         #      Reply-Message = "You've used up more than one hour today"
         counter {
                 filename = ${raddbdir}/db.counter
                 key = User-Name
                 count-attribute = Acct-Session-Time
                 reset = daily
                 counter-name = Daily-Session-Time
                 check-name = Max-Daily-Session
                 allowed-servicetype = Framed-User
                 cache-size = 5000
         }

-Chris
--
    \\\|||///  \  Chris Parker    -    Manager, Development Engineering
    \ ~   ~ /   \       WX *is* Wireless!    \   [EMAIL PROTECTED]
    | @   @ |    \   http://www.starnetwx.net \      (847) 963-0116
oOo---(_)---oOo--\------------------------------------------------------
                   \ Without C we would have 'obol', 'basi', and 'pasal'


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to