session timeout eval random only during night hours

Alan DeKok aland at deployingradius.com
Sat Mar 16 14:42:15 CET 2019


On Mar 15, 2019, at 9:47 PM, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
> update reply {
> 	&Session-Time := "%{expr:%{nexttime:1d} + 7200 + %{rand:14400}}"
> }
> 
> - %{nexttime:1d} - Number of seconds until tomorrow.
> - + 7200 - Plus two hours
> - + %{rand:14400} random value between 0-4 hours.

  Uh... yes.  It's trivial.

  FR is officially at the point where I don't know it any more.  :(

  Alan DeKok.




More information about the Freeradius-Users mailing list