]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More "update {....}" to edit against raddb/mods-*
authorJorge Pereira <jpereiran@gmail.com>
Tue, 16 Aug 2022 00:55:17 +0000 (21:55 -0300)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 16 Aug 2022 21:26:59 +0000 (17:26 -0400)
raddb/mods-available/cache
raddb/mods-available/json
raddb/mods-available/ldap
raddb/mods-available/radius
raddb/mods-available/redundant_sql
raddb/mods-config/perl/example.pl

index 46665b5a68826f398f8621d04984f311fcfb101c..569e6b5d5fa61312ad7436eef1e7d8cb27f602fe 100644 (file)
@@ -316,9 +316,7 @@ cache {
        #
        #  ```
        #  # Add a cache entry
-       #  update {
-       #    &control.Cache-TTL := 3600 # 1h
-       #  }
+       #  &control.Cache-TTL := 1h
        #  cache.store
        #  if (updated) {
        #    ..keys stored
@@ -337,9 +335,7 @@ cache {
        #  }
        #
        #  # Change the entries TTL
-       #  update {
-       #    &control.Cache-TTL := 1600 # 30m
-       #  }
+       #  &control.Cache-TTL := 30m
        #  cache.ttl
        #  if (updated) {
        #    ..ttl changed
index c6c2fd884868fd4d7b8ddd8ea5d8a34945d59be5..5bfad2bbb3d68ecdab925def6a69a071636cd0a4 100644 (file)
@@ -174,12 +174,8 @@ json {
 #
 #  [source,unlang]
 #  ----
-#  update control {
-#    &Tmp-String-0 := '$.my.json.payload[1]'
-#  }
-#  update reply {
-#    &Reply-Message := "Validation of %{control.Tmp-String-0} is %{jpathvalidate:$.my.json.payload[1]}"
-#  }
+#  &control.Tmp-String-0 := '$.my.json.payload[1]'
+#  &reply.Reply-Message := "Validation of %{control.Tmp-String-0} is %{jpathvalidate:$.my.json.payload[1]}"
 #  ----
 #
 #  .Output
@@ -198,12 +194,8 @@ json {
 #
 #  [source,unlang]
 #  ----
-#  update control {
-#    &Tmp-String-0 := "caipirinha/gelada"
-#  }
-#  update reply {
-#    &Reply-Message := "The string %{control.Tmp-String-0} should be %{jsonquote:%{control.Tmp-String-0}} to be a valid JSON string."
-#  }
+#  &control.Tmp-String-0 := "caipirinha/gelada"
+#  &reply.Reply-Message := "The string %{control.Tmp-String-0} should be %{jsonquote:%{control.Tmp-String-0}} to be a valid JSON string."
 #  ----
 #
 #  .Output
index eac37631a2b7a7eae05798c5b8e7610e9a5b4dd2..dae45100c2a412cfc1f0ab8818212df5586f88da 100644 (file)
@@ -224,9 +224,7 @@ ldap {
        #  ----
        #  ldap
        #  if ((ok || updated) && &User-Password) {
-       #       update {
-       #               &control.Auth-Type := ldap
-       #       }
+       #       &control.Auth-Type := ldap
        #  }
        #  ----
        #  ====
index c41430a57447f168e00295bef243a2da7c809296..3215ac13ea55074c32eab2b6d8fe279e283612ea 100644 (file)
@@ -128,14 +128,12 @@ radius {
                #
                type = Status-Server
 
-               #
-               #  update request { ... }::
                #
                #  `Status-Server` packet contents are fixed and cannot
                #  be edited.
                #
-               #  For other packet types, you can create the contents
-               #  here.  The section MUST be "update request", and
+               #  For other packet types, you can set the contents
+               #  here.  The section MUST be set over "&request.<attribute> = value", and
                #  anything else will cause a parse error.
                #
                #  We RECOMMEND that you use packet contents which
@@ -155,12 +153,10 @@ radius {
                #  created when a connection is opened, and are not
                #  changeable after that.
                #
-#              update request {
-#                      &User-Name := "test-user"
-#                      &User-Password := "this-is-not-a-real-password"
-#                      &NAS-Identifier := "Status check.  Are you alive?"
-#                      &Event-Timestamp = 0
-#              }
+#              &request.User-Name := "test-user"
+#              &request.User-Password := "this-is-not-a-real-password"
+#              &request.NAS-Identifier := "Status check.  Are you alive?"
+#              &request.Event-Timestamp = 0
 
        }
 
index bb1c90135f02e4a06035534d56a0919ed6086bbe..23efaf98f652a8a50b9159e5c77320c37acb9ec9 100644 (file)
@@ -33,9 +33,7 @@
 #  it will be `redundant_sql`.  You can then use this expansion
 #  just like any other:
 #
-#      update reply {
-#              Filter-Id := "%{redundant_sql: ... }"
-#      }
+#      &reply.Filter-Id := "%{redundant_sql: ... }"
 #
 #  In this example, the expansion is done via module `sql1`, and if
 #  that expansion fails, using module `sql2`.
index 7b9b3a79dd320546ad30903bfed814ed41b05019..3fa1467467fd2bafcb36c784fbdefcb558439b5a 100644 (file)
@@ -49,9 +49,9 @@ our (%RAD_REQUEST, %RAD_REPLY, %RAD_CONFIG, %RAD_STATE);
 
 # Multi-value attributes are mapped to perl arrayrefs.
 #
-#  update request {
-#    Filter-Id := 'foo'
-#    Filter-Id += 'bar'
+#  &request.Filter-Id := 'foo'
+#  &request += {
+#    &Filter-Id = 'bar'
 #  }
 #
 # This results to the following entry in %RAD_REQUEST: