How to get current datetime in freeradius?

Houman houmie at gmail.com
Wed Oct 2 08:24:27 CEST 2019


Thanks Alan,

Ok fair point. I have now gone back to the document that Christian sent me
earlier:
https://wiki.freeradius.org/config/run_time_variables#one-character-variables

/etc/freeradius/3.0/sites-enabled/default[565]: (Expires-At < %{l}) {
/etc/freeradius/3.0/sites-enabled/default[565]:               ^ Failed to
parse value for attribute

/etc/freeradius/3.0/sites-enabled/default[565]: (Expires-At < %l) {
/etc/freeradius/3.0/sites-enabled/default[565]:               ^ Failed to
parse value for attribute

I'm still unable to get the local timestamp. Do I have to enable anything
else?

Thanks,
Houman

On Wed, 2 Oct 2019 at 01:11, Alan DeKok <aland at deployingradius.com> wrote:

> On Oct 1, 2019, at 5:56 PM, Houman <houmie at gmail.com> wrote
> > Fair point. I have tried your way like this, but I get an error with
> > Event-Timestamp. This is not predefined like %{User-Name} I take it. So
> how
> > do I get that?
>
>   That attribute is sent by the NAS in a packet.  If it isn't sent in a
> packet, see the Wiki for variable expansions.  You can use the local time
> via %l
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list