On Mon, 20 Mar 2000, Mike Carbonel wrote:
..
> hi,
>    good afternoon.... how can i limit a user to a
> certain number of hours, say for a month he is only
> allowed 10 hours... or he is allowed 30 hours for
> unspecified number of months until he uses all the 30
> hours allotted to him.... can linux do this or do i
> need another software.... thanks in advance...

Check the Session-Timeout and Ascend-Maximum-Time Radius attributes (the
latter is only used by Ascend RAS equipment, the former is the Radius
standard). They limit the maximum connect-time (in seconds) for the
current session.

Your Radius software should keep track of the amount of time consumed by a
given user in a given month and modify the
Session-Timeout/Ascend-Maximum-Time parameters returned in response to the
Auth-Request Radius packet from the RAS.

Note that you also use the above technique if you are implementing prepaid
billing..


---------------------------------------------------------------------
Orlando Andico <[EMAIL PROTECTED]>                   +63   (2) 937-2293
Mosaic Communications, Inc.                        +63 (917) 531-5893
Any sufficiently perverted technology is indistinguishable from Perl.


-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to