Non-Breaking Accounting Response Handling

Alan DeKok aland at deployingradius.com
Thu Mar 13 09:04:00 UTC 2025


On Mar 13, 2025, at 3:02 AM, (null) (null) via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> 
> I have the accounting {} setting in /etc/raddb/sites-available/default.
> How can I prevent this configuration from breaking the accounting response if an SQL connection error occurs or radutmp fails to write to the file? The accounting response should continue even if there are logging errors.
> 
> accounting {
> if ("%{User-Name}" =~ /@/) {
> radutmp
> sql_Fradius_log
>     }
> exec
> attr_filter.accounting_response
> log_accounting

  Add "ok".

  The accounting section only replies if at least one module returns OK / success.

  Alan DeKok.




More information about the Freeradius-Users mailing list