Note new %{exec:....} in config files
authoraland <aland>
Tue, 1 Jul 2008 13:12:14 +0000 (13:12 +0000)
committeraland <aland>
Tue, 1 Jul 2008 13:12:14 +0000 (13:12 +0000)
man/man5/unlang.5

index db0befa..6b244f8 100644 (file)
@@ -10,7 +10,7 @@
 .RE
 .sp
 ..
-.TH unlang 5 "16 Jan 2008" "" "FreeRADIUS Processing un-language"
+.TH unlang 5 "01 Jul 2008" "" "FreeRADIUS Processing un-language"
 .SH NAME
 unlang \- FreeRADIUS Processing un\-language
 .SH DESCRIPTION
@@ -48,6 +48,27 @@ section, and MODULE RETURN CODES, below.
 .br
        ...
 .DE
+.IP %{module-name:\ string}
+Calls the named module, with the arguments "string".  There are no
+other side effects.  See also the section below titled "Obtaining
+results from databases".  The functionality described here is the same
+as in that section, except that the returned string (if any) is
+discarded.
+
+Not all modules have this feature.  Similarly, the string arguments to
+the module are undocumented, other than perhaps in the comments to the
+module configuration.
+.DS
+       ...
+.br
+       %{sql:INSERT ... } # performs an SQL insert
+.br
+       %{exec:/path/to/pgm %{User-Name}} # runs pgm with args
+.br
+       ...
+.DE
+This functionality is available anywhere a normal "module-name"
+reference is allowed.
 .IP if
 .br
 Checks for a particular condition.  If true, the block after the