]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use mod_accounting in send Accounting-Response
authorNick Porter <nick@portercomputing.co.uk>
Mon, 21 Oct 2024 15:16:27 +0000 (16:16 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 21 Oct 2024 15:38:02 +0000 (16:38 +0100)
There's very little point in logging accouning responses in detail
files, and the sample config calls "detail" in the send
Accounting-Response section.

src/modules/rlm_detail/rlm_detail.c

index 8966e1588f51c76c285c6cefa316191736252bde..2acf642fcd61161be0c9b442fab28f12c0e5dafb 100644 (file)
@@ -513,6 +513,7 @@ module_rlm_t rlm_detail = {
                .bindings = (module_method_binding_t[]){
                        { .section = SECTION_NAME("accounting", CF_IDENT_ANY), .method = mod_accounting, .method_env = &method_env },
                        { .section = SECTION_NAME("recv", "accounting-request"), .method = mod_accounting, .method_env = &method_env },
+                       { .section = SECTION_NAME("send", "accounting-response"), .method = mod_accounting, .method_env = &method_env },
                        { .section = SECTION_NAME("recv", CF_IDENT_ANY), .method = mod_authorize, .method_env = &method_env },
                        { .section = SECTION_NAME("send", CF_IDENT_ANY), .method = mod_post_auth, .method_env = &method_env },
                        MODULE_BINDING_TERMINATOR