March 16, 2023 2:15 PM, "Alan DeKok" <aland@deployingradius.com> wrote:
On Mar 16, 2023, at 9:13 AM, g4-lisz@tonarchiv.ch wrote:
Sorry for asking this basic question, but how exactly do I use this module? I.e. how looks a XLAT string / placeholder that gives me the current date in a certain format?
For most modules there are plenty of examples, but I couldn't find anything about date:... expansion.
The module comes with documentation. https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/mods-avail...
See "wispr2date", which includes sample configuration, and an example of how to use the module in an xlat string.
Thank you again! Seems that I looked at an older version of the module setup, where there wasn't the wispr2date part yet. But one question remains: How I get the current time into this expression? In the example it's using an attribute. I guess there is some built in variable for this? Sorry, I couldn't find this information either... Best regards, Till