Override/set Current-Time for rlm_logintime testing

Alan DeKok aland at deployingradius.com
Thu Aug 26 14:38:59 CEST 2021

On Aug 25, 2021, at 11:56 PM, Jason Healy <jhealy at logn.net> wrote:
> I'm working on using rlm_logintime to enforce time of day logins for certain users.
> I'm also building some radclient packets that I can use to test different time boundaries to make sure my policies are correct.

  That's a good idea.

> However, logintime looks like it's always using the packet arrival time to do its calculations (understandably; there's no other reliable source).
> Is there any way to override the packet arrival time, through an attribute or function?

  Unfortunately, no.  You'll have to edit the source code to add any new functionality.

  Alan DeKok.

More information about the Freeradius-Users mailing list