Trying to work out 24hour access cards
tnt at kalik.co.yu
tnt at kalik.co.yu
Fri Aug 10 14:29:51 CEST 2007
Not really. They wiil be able to open an account at noon and use 12
hours; then few minutes before noon of the next day connect again and
use another 12 hours mostly past your 24 hour deadline.
You want to add the Expiration attribute to the user profile at the time
of the first login. You can use exec or perl script to do this at the
time of every login (you need to run it every time but add attribute
only if it is the first for that user). Or, simpler, run an outside
program once a day setting it for new starters. Put also
Max-All-Session=86400 at the time of the account opening (you don't
need that if you are running a script at every login).
Ivan Kalik
Kalik Informatika ISP
Dana 10/8/2007, "Evert Meulie" <evert at witelcom.com> piše:
>Hi all!
>
>I have a system here that's based on freeradius-1.0.2-r5 (Gentoo distro) and we're having some
>problem with 24hour access cards.
>
>With these I mean logins that will give a user access for a period of max. 24 hours from first
>login. Should be able to be over a period of 2 days.
>For example
>
>first login: 3pm day 1
>2nd login: 1pm day 2 should be allowed
>
>
>I've been looking at http://wiki.freeradius.org/Rlm_sqlcounter and see that
>Max-Daily-Session=86400 will NOT do the trick, since this will allow 24 hours of access PER day
>Max-All-Session=86400 will not work either, since this will allow a total of 24 hours of login time
>over an undefined period.
>
>How do I get the correct config for my situation? Do I set BOTH Max-Daily-Session & Max-All-Session
>to 86400 in my case to get the correct result?
>
>
>Regards,
> Evert
>
>
>-
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
More information about the Freeradius-Users
mailing list