On Fri, 27 Sep 2002, JD wrote:

> Ive read all the documentation, and the conf files over and over, none if it makes 
>any sense to me. Im trying
> to keep the users in /etc/raddb/users, and at the same time. Limit them to 200 hours 
>per month. Some
> advice on how to limit the 200 hours to the users listed in the users file would be 
>greatly appreciated.
> Im also in a time frame. Im trying to get this fixed before the weekend is up.

Let's say that in your radiusd.conf you have check-name = Max-Daily-Session in
your counter module configuration. Then you should put a DEFAULT entry in your
users file like:

DEFAULT Max-Daily-Session = 720000
        Fall-Through = 1

This should be before any user entries.

If you want to set it to another value for one of your users just add it in the
user's check items (use the := operator to override the value).

Also make sure that the files module comes before the counter module in the
authorize section. Add the counter module in the instantiate section (so that it
registers the Max-Daily-Session attribute before the files module reads the
users file) and in the authorize and accounting section.

>
> I don't really like fooling with SQL, and I don't know anything about LDAP. There 
>must be a way
> to do this.

SQL and LDAP are really nice. It really pays off having your users in one of
these databases.  There's also dialup_admin to administer user entries if you
decide to put your users there.

>
> Thanks

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]      National Technical University of Athens, Greece
Work Phone:             +30 10 7721861
'Go back to the shadow' Gandalf


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

Reply via email to