(RADIATOR) Time & Session-Timeout

Hugh Irvine hugh at open.com.au
Wed May 16 08:04:20 CDT 2001


Hello Mariano -

You will need to write a Hook to do at least some of what you 
describe, and do some experiments to answer your own questions.

I am on the road this week and can't do any tests until next week, so 
I suggest you try a few things yourself and let me know if you have 
any trouble.

regards

Hugh


At 18:47 -0300 15/5/01, Mariano Absatz wrote:
>Hi,
>
>I would like to do the following.
>
>Suppose I have a dial-up product that allows a user to connect only in a
>certain block time AND also has a maximum hours per month.
>
>For instance, he can connect Mon-Fri 8-20 and Sat 8-13 but no more than
>20 hours per month.
>
>I would have a TIMEBLOCK column in that user database with the following
>content:
>
>"MoTuWeThFr0800-2000, Sa0800-2000"
>
>(btw, does the weekday support ranges also, like in "Mo-Fr0800-2000,
>Sa0800-2000"?)
>
>The TIMELEFT column would have the seconds remaining for this user.
>
>What I want is to set Session-Timeout to the minimum of "until Time" and
>TIMELEFT.
>
>But... :-) ... I also want to be able to have a value (in the db column)
>to ignore either or both:
>
>Example database:
>
>username,password,timeleft,timeblock
>john,secret,7200,"MoTuWeThFr0800-2000, Sa0800-2000"
>paul,xxxx,-1,"Wk0800-2000, Sa0800-2000"
>mary,abcd,-1,"Al0000-2400"
>jane,wxyz,126000,"Al0000-2400"
>
>being, -1, for instance, an indicator that the user has unlimited monthly
>connection time (but maybe subject to timeblock restrictions).
>
>In this example database john has 2 hours left and can only log on
>weekdays from 8 through 20 and saturdays from 8 through 13.
>
>paul can log in during the same periods but has no total time
>restrictions.
>
>mary has no restrictions at all
>
>jane can log in at any time, but she has only 35 hours left.
>
>Questions:
>
>1) can I do this weird thing somehow simply? (I already read
>goodies/blocktime.txt, but this is way more complicated, is it?) (note: I
>could, if necessary, use a "very large value" to indicate
>timeleft=infinity, but I'd rather have a more visual and checkable value,
>like -1).
>
>2) is the timeblock "Al0000-2400" acceptable?
>
>3) are overlapping timeblocks acceptable? (e.g. "Wk0800-1700,
>MoWeFrSa1500-2000")
>
>TIA.
>
>
>Mariano Absatz
>El Baby
>----------------------------------------------------------
>To define recursion, we must first define recursion.
>
>===
>Archive at http://www.open.com.au/archives/radiator/
>Announcements on radiator-announce at open.com.au
>To unsubscribe, email 'majordomo at open.com.au' with
>'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list