AcctSessionTime missing in Interims-Update / calculated by FR
Alan DeKok
aland at deployingradius.com
Sat Mar 24 13:23:05 CET 2018
On Mar 23, 2018, at 3:17 PM, Michael Markstaller via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
>
> FR: 2.1.12 on Debian
Upgrade to 2.2.10. It's config compatible, and much better.
> I have a probably easy and stupid problem:
>
> The Cisco ASA (5525-X, 9.4.4) doesn't send AcctSessionTime in
> "Interim-Update"
> so I want FR to just calculate it to be able to purge stale sessions (by
> a sep. cronjob)
So... in preacct {...} section, do:
if (!Acct-Session-Time && Acct-Start-Time) {
update request {
Acct-Session-Time := "%{expr:%l - %{Acct-Start-Time}}"
}
}
That creates the Acct-Session-Time if it doesn't already exist.
Alan DeKok.
More information about the Freeradius-Users
mailing list