Michael Chernyakhovsky <[EMAIL PROTECTED]> wrote:
> Look at radiusd.conf.
> module counter

  The only problem here is that it doesn't update the Session-Time
attribute.  So once they've logged, they can stay in as long as they
want.

  There is, however, a solution to this.  Put the users in a special
group, and key Session-Time on that:

DEFAULT  Group == "onehour", Daily-Session-Time > 3600, Auth-Type := Reject
         Reply-Message = "You've used up more than one hour today"

DEFAULT   Group == "onehour"
          Session-Timeout = 3600,
          Fall-Through = Yes


  Alan DeKok.

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

Reply via email to