summaryrefslogtreecommitdiffstats
path: root/raddb/mods-available/exec
blob: bb1d4374b741a7bfcdfc098fc57af650509ceae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- text -*-
#
#  $Id$

#
#  Execute external programs
#
#  This module is useful only for 'xlat'.  To use it,
#  put 'exec' into the 'instantiate' section.  You can then
#  do dynamic translation of attributes like:
#
#  Attribute-Name = `%{exec:/path/to/program args}`
#
#  The value of the attribute will be replaced with the output
#  of the program which is executed.  Due to RADIUS protocol
#  limitations, any output over 253 bytes will be ignored.
#
#  The RADIUS attributes from the user request will be placed
#  into environment variables of the executed program, as
#  described in "man unlang" and in doc/configuration/variables.rst
#
#  See also "echo" for more sample configuration.
#
exec {
	wait = no
	input_pairs = request
	shell_escape = yes
	timeout = 10
}