This is a discussion on Re: Wait period between sessions within the FreeRADIUS Users forums, part of the Networking and Network Related category; Cory Robson wrote: > I have a user group that is only allowed 3hr session times (easily resolved > with ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html |