[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: logintime replacement
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2024-02-29 14:35:05
Message-ID: 9B42207D-1ED2-4431-92C0-C587BF283AED () deployingradius ! com
[Download RAW message or body]

On Feb 28, 2024, at 1:47 PM, Stephen Medina <stephen@lilmail.xyz> wrote:
> 
> I noticed that the logintime module is not in v4. Is there a recommended
> way of replacing it or should it be moved to an "external" module, e.g.
> rest, python?

  You can just check times directly.  The unlang language now supports dates natively.

if (%time('request') < (date) 'Aug 1 2023 01:02:03 UTC') {
	...
}

  Alan DeKok.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic