From: Alan T. DeKok Date: Fri, 25 Jan 2019 13:49:41 +0000 (-0500) Subject: minor word smithing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b333c742577f75a33bb35f8cccaffbc35bfdde4c;p=thirdparty%2Ffreeradius-server.git minor word smithing --- diff --git a/raddb/mods-available/client b/raddb/mods-available/client index fb7463d070f..39e7b7c79c5 100644 --- a/raddb/mods-available/client +++ b/raddb/mods-available/client @@ -22,7 +22,7 @@ # # * 3. Uncomment the `directory` entry in that client definition. # -# * 4. List `client` in the `recv` section of the `client` virtual server. +# * 4. List `client` in the `new client` section of the `client` virtual server. # The default example already does this. # # * 5. Put files into the above directory, one per IP. @@ -31,30 +31,36 @@ # # NOTE: For more documentation, see the file `raddb/sites-available/dynamic-clients` # +# ## Module Capabilities # +# #### Maps # -# ## Module supports -# -# #### maps +# The client files can be used as simple databases. They can map from +# a client configuration item to an attribute at run-time via a map. +# This map can be placed in any `unlang` processing section/ # # e.g: # -# map client [] { +# map client { # Tmp-String-0 := 'nas_type' # Tmp-String-1 := 'shortname' # Tmp-String-3 += 'groups' # Creates multiple attributes from custom group -# # attribute associated with the client. +# # attribute associated with the client. # } # # #### %{client:...} expansion # +# The client can also return one configuration item in a dynamic +# string expansion. +# # e.g: # -# "%{client:nas_type}" # Expands to client's `nas_type` (or "" if nas_type not set) +# "%{client:nas_type}" # Expands to the current client's `nas_type` (or "" if nas_type not set) # "%{client:.nas_type}" # Expands to the specified client's nas_type (or "" if nas_type not set) # # # ## Default instance +# client { }