]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
note that %integer()... is no longer needed. Casting works fine
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 Sep 2023 18:42:25 +0000 (14:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Sep 2023 22:43:33 +0000 (18:43 -0400)
doc/antora/modules/installation/pages/upgrade.adoc
doc/antora/modules/reference/pages/xlat/builtin.adoc

index cd17b7b60b6991c178308ca459bda64b4500c06a..da847eb97c8a48d64c9eb2a5d8e659305a9ed073 100644 (file)
@@ -698,8 +698,11 @@ postgresql).
 
 == Xlat expansions
 
-The use of `%%` to escape `%` is no longer supported.  Just use `%`,
-and the parser is smart enough to figure things out.
+Xlat expansions have been changed from syntax like `%{md5:...}` to `%md5(...)`.
+
+=== Removed expansions
+
+`%{integer:...}` has been removed.  Just use a cast, such as `(integer) &Service-Type`.
 
 == New Modules
 
index 8e7119ab5fb6de071b553bc796a737ccda78285b..ad6bbbf1eeb07ef8e04c0e80de8c61112cfcc5d7 100644 (file)
@@ -37,42 +37,6 @@ The length of 192.168.0.2 is 4
 ....
 ====
 
-=== %(integer:<value>)
-
-Convert a value to an integer.
-
-In normal operation, `integer` attributes are printed using the name
-given by a `VALUE` statement in a dictionary. Similarly, date
-attributes are printed as dates, i.e., "January 1 2010.
-
-The `integer` expansion applies only to attributes which can be
-converted to an integer. For all other inputs, it returns `0`.
-
-A common usage is to find the difference between two dates.
-
-For example, if a request contains `Service-Type = Login-User`, the
-expansion of `%(integer:%{Service-Type})` will yield `1`, which is the
-value associated with the `Login-User` name. Using
-`%(integer:%{Event-Timestamp})` will return the event timestamp as an
-unsigned 32-bit number.
-
-.Return: _string_
-
-.Determining the integer value of an enumerated attribute
-====
-[source,unlang]
-----
-&control.Service-Type := Login-User
-&reply.Reply-Message := "The value of Service-Type is %(integer:%{control.Service-Type})"
-----
-
-.Output
-
-```
-The value of Service-Type is 1
-```
-====
-
 === %{rand:<number>}
 
 Generate random number from `0` to `<number>-1`.