~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to doc/variables.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jeremie Corbier
  • Date: 2006-07-08 19:41:05 UTC
  • mto: (3.1.8 edgy) (4.1.3 sid) (1.1.14 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060708194105-bxbr4e6m4dfw2x4x
Tags: upstream-1.1.2
ImportĀ upstreamĀ versionĀ 1.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
     %{proxy-reply:Attribute-Name}   The value of the given Attribute-Name
16
16
                                     in the proxy reply packet (if it exists)
17
17
 
18
 
  The above variable expansions also support the meta-Attribute
 
18
  The above variable expansions also support the meta-attribute
19
19
Packet-Type as well. See the RADIUS dictionary for details on its
20
20
values.
21
 
         
 
21
 
22
22
     %{check:Attribute-Name}         Corresponding value for Attribute-Name
23
23
                                     in check items for request
24
24
        
44
44
operator !~, or when =~ doesn't match.  Any use of =~ destroys all
45
45
previous values of %{0}..%{8}, but the variables.
46
46
 
47
 
 
48
47
  Some examples.
49
48
 
50
49
  %{User-Name}                   The string value of the User-Name attribute.
93
92
    When attribute Bar is unset:  returns literal string 'baz'
94
93
 
95
94
 
 
95
  Multiple-valued attributes
 
96
  --------------------------
 
97
 
 
98
     %{Attribute-Name[index]}
 
99
        Reference the N'th occurance of the given attribute.  The
 
100
        indexes start at zero.  This feature is NOT available for
 
101
        non-attribute dynamic translations, like %{sql:...}.
 
102
 
 
103
        e.g. %{User-Name[0]} is the same as %{User-Name}
 
104
        e.g. %{Cisco-AVPair[2]} references the value of the *third*
 
105
             Cisco-AVPair attribute (if it exists) in the request
 
106
             packet,
 
107
 
 
108
 
96
109
  Attributes as environment variables in executed programs
97
110
  --------------------------------------------------------
98
111
 
99
 
  When calling an external program (e.g. from Exec-Program-Wait), these
100
 
variables can be passed on the command line to the program.  In
101
 
addition, the server places all of the attributes in the RADIUS
102
 
request into environment variables for the external program.  The
 
112
  When calling an external program (e.g. from 'rlm_exec' module),
 
113
these variables can be passed on the command line to the program.
 
114
In addition, the server places all of the attributes in the RADIUS
 
115
request into environment variables for the external program. The
103
116
variables are renamed under the following rules:
104
117
 
105
118
  1.  All letters are made upper-case.
158
171
               except password
159
172
               (must have a big buffer)
160
173
 
161
 
 $Id: variables.txt,v 1.12 2004/03/26 19:18:17 aland Exp $
 
174
 $Id: variables.txt,v 1.12.4.1 2006/01/27 17:27:00 nbk Exp $