Wait period between sessions

Cory Robson cory at cmi.net.au
Sat Feb 24 00:22:00 CET 2007



-----Original Message-----
From: freeradius-users-bounces+cory=cmi.net.au at lists.freeradius.org
[mailto:freeradius-users-bounces+cory=cmi.net.au at lists.freeradius.org] On
Behalf Of Peter Nixon
Sent: Saturday, 24 February 2007 2:54 AM
To: FreeRadius users mailing list
Subject: Re: Wait period between sessions

On Fri 23 Feb 2007 10:53, Alan DeKok wrote:
> Cory Robson wrote:
> > I have a user group that is only allowed 3hr session times (easily
> > resolved with sql counter module) with a 15 minute wait period between
> > sessions.
> >
> > Has anyone written a module or know of a way to implement this wait
> > period.
>
>   A shell script would work.
>
> > I was thinking something similar to a module based around the sql max
> > session module only query the sql backend for the last time connected
> > and if the period is less than set variable (15 mins in my case) then
> > reject access with an error message like "Wait Period Enforced"
>
>   Or, update the SQL query for Acct-Status-Type == Stop.  Have it insert
> another field, saying when the user can next login.  On login, check
> that field.
>
>   I think you can do this without writing a module.

Definitely yes. The question is what happens if the user manually
disconnects 
prior to his session timeout then tries to reconnect....




In my needs he will still be subject to a wait period.


Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc
- 
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

__________ NOD32 2078 (20070223) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com





More information about the Freeradius-Users mailing list