Now I understand that the first two lines are to be added to the users file, not to
the conf file, foolish of me.
But this time I get the message,

radiusd: Starting - reading configuration files ...
radiusd: /usr/local/etc/raddb/users[207]: Parse error (check) for entry DEFAULT:
Unknown attribute Daily-Session-Time
radiusd: Errors reading /usr/local/etc/raddb/users
radiusd: radiusd.conf[460]: files: Module instantiation failed.

What is wrong this time

> 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


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

Reply via email to