Sorry, I did not find it before. Now when I uncomment these first two lines,
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
}
The following message appears when I try to start radius,
radiusd: Starting - reading configuration files ...
radiusd: /usr/local/etc/raddb/radiusd.conf[544]: Line is not in 'attribute =
value' format
radiusd: Errors reading radiusd.conf
Line 544 is the first line with DEFAULT.
Any help will be appreciated.
> "Dr. Muhammad Masroor Ali" <[EMAIL PROTECTED]> wrote:
> > How do I restrict daily total usage time for all or a particular user?
> > That means, total usage per day will be
> > limited to say, three hours?
>
> Read 'raddb/radiusd.conf'. Look for 'counter'.
>
> Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html