Changing format for $RAD_REQUEST{'Event-Timestamp'} in Perl module

Benjamin Thompson b.thompson at latera.ru
Thu May 27 08:50:07 CEST 2021


On Wed, 26 May 2021 at 12:04, Юрий Иванов <format_hub at outlook.com> wrote:

>
> I need to change $RAD_REQUEST{'Event-Timestamp'} format before inserting
> to database.
> Looks like $RAD_REQUEST{'date:Event-Timestamp'},
> $RAD_REQUEST{'integer:Event-Timestamp'} are not working.
>

You can do it in unlang before calling perl:

update control {
    &Tmp-Integer-0 := "%{integer: request:Event-Timestamp}"
}
perl


More information about the Freeradius-Users mailing list