Radiator Server Documentation — v10.34.2

@pre_accounting

Variant of @pre_execute for @accounting which is only executed for accounting requests. If this pipeline rejects, the main @accounting and @post_accounting pipelines are skipped, and the request is rejected immediately.

Note: The @ prefix is required for pipeline blocks. The legacy syntax without @ (e.g., pre_accounting {}) is deprecated and emits warnings. Use @pre_accounting {} for new configurations.

See also

Example

@pre_accounting {
    if all {
        aaa.identity.realm == "";
    } then {
        aaa.identity.realm = "default.example.com";
    }
}