]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update docs and examples
authorAlan T. DeKok <aland@freeradius.org>
Wed, 5 Feb 2025 19:00:18 +0000 (14:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 5 Feb 2025 19:00:18 +0000 (14:00 -0500)
raddb/sites-available/tacacs

index 46dfba10e7150d764b07a867df86f98e35e94457..dd517095339c9e0b40ba1cd33eab26a4e81777ae 100644 (file)
@@ -358,11 +358,11 @@ server tacacs {
        }
 
        #
-       #       ## Authorization
+       #  ## Authorization
        #
 
        #
-       #       ### Recv
+       #  ### Recv
        #
        recv Authorization-Request {
                "%{Authentication-Method}"
@@ -376,7 +376,7 @@ server tacacs {
        }
 
        #
-       #       ### Send
+       #  ### Send
        #
        #       Add the arguments to whatever the user entered.
        #
@@ -405,11 +405,11 @@ server tacacs {
        }
 
        #
-       #       ## Accounting
+       #  ## Accounting
        #
 
        #
-       #       ### Recv
+       #  ### Recv
        #
        recv Accounting-Request {
                #
@@ -418,24 +418,40 @@ server tacacs {
                detail
        }
 
+       #
+       #  ### Accounting "type" Sections
+       #
+       #  Each type of accounting packet is run through its own
+       #  section. The section MUST return "ok" to indicate that
+       #  it successfully handled the accounting data.
+       #
+       #  The "ok" return code is typically set automatically when
+       #  an accounting module succeeds in its work.  The explicit
+       #  "ok" here is just so that the default configuration will
+       #  return success for all accounting packets.
+       #
        #  First packet for a session
        accounting Start {
+               ok
        }
 
        #  Updates a previous start
        accounting Watchdog-Update {
+               ok
        }
 
        #  Updates a session
        accounting Watchdog {
+               ok
        }
 
        #  Stops a session
        accounting Stop {
+               ok
        }
 
        #
-       #       ### Send
+       #  ### Send Responses
        #
        send Accounting-Success {
                reply.Server-Message := "Success"