]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
document more authorization replies
authorAlan T. DeKok <aland@freeradius.org>
Tue, 15 Oct 2024 18:44:15 +0000 (14:44 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 15 Oct 2024 18:45:17 +0000 (14:45 -0400)
raddb/sites-available/tacacs

index a0da50e22d2ce0b87280b706aed5a50cdc434eb2..a60be2c3cc427a1c1b8a051ac3fd6a51ea01e167 100644 (file)
@@ -274,6 +274,8 @@ server tacacs {
        #
        #  ### Send
        #
+       #  Note that "follow" is officially deprecated, and is not supported.
+       #
        send Authentication-Pass {
                &reply.Server-Message := "Hello %{User-Name}"
 
@@ -347,6 +349,8 @@ server tacacs {
        #
        #       ### Send
        #
+       #       Add the arguments to whatever the user entered.
+       #
        send Authorization-Pass-Add {
                &reply.Authorization-Status := Pass-Add
                &reply.Server-Message := "authorization-response-server"
@@ -354,6 +358,30 @@ server tacacs {
                &reply.Argument-List := "key1=var1"
        }
 
+       #
+       #       Replace whatever the user entered with the following arguments
+       #
+       send Authorization-Pass-Reply {
+               &reply.Authorization-Status := Pass-Repl
+               &reply.Server-Message := "authorization-response-server"
+               &reply.Data := "authorization-response-data"
+               &reply.Argument-List := "key1=var1"
+       }
+
+       #
+       #       Reject the request
+       #
+       send Authorization-Fail {
+               &reply.Authorization-Status := Fail
+       }
+
+       #
+       #       An error processing the request
+       #
+       send Authorization-Fail {
+               &reply.Authorization-Status := Error
+       }
+
        #
        #       ## Accounting
        #