5.5.1 Syntax of `raddb/nastypes'
(This message will disappear, once this node revised.)
Syntax
Each record consists of three fields separated by any amount of
whitespace. The fields are:
- Type
- Type of the NAS which is described in this record.
- Method
- Method to use to query a NAS of given type.
- Arguments
- Arguments to pass to this method. Each argument is a pair
arg=value, where arg is its name and value is
a value assigned to it. The list of predefined argument names follows.
Note, that no intervening whitespace is allowed in this
field.
Methods
Version 1.3 of GNU Radius supports following querying methods:
finger, snmp, external and guile.
<FIXME> Describe these fully </>
.
Arguments
In the discussion below n means numeric and s string value.
The following arguments are predefined:
Common for all methods
- function=s
- Specifies the check function to use with this method
(see section 11.2.5 Login Verification Functions).
This argument must be present. For description of how this function is
applied, see 7.9 Multiple Login Checking.
- port=n
- Use port number n instead of the default for the given method.
Method snmp
- password=s
- Use community s instead of the default. This argument must be
present.
- retries=n
- Retry n times before giving up.
- timeout=n
- Timeout n seconds on each retry.
Method finger
- timeout=n
- Give up if the NAS does not respond within n seconds.
- notcp
- tcp=0
- Disable the use of T/TCP for hosts with a broken TCP implementation.
- arg=subst
- Send subst to finger, instead of username. subst must be
one of macro variables, described below.
Macro variables
The following macro-variables are recognized and substituted when
encountered in the value pair of an argument:
<FIXME> Describe new syntax for extendable strings. Notice, that the
use of old meta-characters is deprecated. </>
- `%u'
- Expands to username.
- `%s'
- Expands to session id.
- `%d'
- Expands to session id converted to decimal representation.
- `%p'
- Expands to port number.
- `%P'
- Expands to port number + 1.
This document was generated
by Sergey Poznyakoff on November, 20 2004
using texi2html