@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 {
        set aaa.identity.realm = "default.example.com";
    }
}