blob: ab7de2d37f6d7800918b37bede24c982d6e47ced [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001# -*- text -*-
2#
3# $Id: 1e130ef24a4dbcd55f347ebd799a8b2bf4f3333a $
4
5#
6# This module is useful only for 'xlat'. To use it,
7# put 'expr' into the 'instantiate' section. You can then
8# do dynamic translation of attributes like:
9#
10# Attribute-Name = `%{expr:2 + 3 + %{exec: uid -u}}`
11#
12# The value of the attribute will be replaced with the output
13# of the program which is executed. Due to RADIUS protocol
14# limitations, any output over 253 bytes will be ignored.
15#
16# The module also registers a few paircompare functions, and
17# many string manipulation functions.
18#
19
20expr {
21 #
22 # Characters that will not be encoded by the %{encode}
23 # xlat function.
24 #
25 safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
26}