blob: 470b9cbd7a7f7c1011b4856a0533faac5bcfa416 [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001# -*- text -*-
2#
3# $Id: 5f21e4350f091ed51813865a31b2796c4b487f9f $
4
5#
6# Execute external programs
7#
8# This module is useful only for 'xlat'. To use it,
9# put 'exec' into the 'instantiate' section. You can then
10# do dynamic translation of attributes like:
11#
12# Attribute-Name = `%{exec:/path/to/program args}`
13#
14# The value of the attribute will be replaced with the output
15# of the program which is executed. Due to RADIUS protocol
16# limitations, any output over 253 bytes will be ignored.
17#
18# The RADIUS attributes from the user request will be placed
19# into environment variables of the executed program, as
20# described in "man unlang" and in doc/variables.txt
21#
22# See also "echo" for more sample configuration.
23#
24exec {
25 wait = no
26 input_pairs = request
27 shell_escape = yes
28 output = none
29 timeout = 10
30}