This defines the name, RADIUS attribute number, and type for
an attribute. Here is an example of attribute definition:
ATTRIBUTE Service-Type 6 integer
ATTRIBUTE
is the keyword that says this is an attribute definition. Service-Type is
the name of the attribute: the string that is used as the attribute name
when printing the attribute and when setting attributes in the user
database. 6 is the standard RADIUS attribute number for this attribute
(see RFC 2865), and integer is the data type for this attribute. The
supported data types are:
stringASCII string of up to 253 bytes.
Trailing NULs are stripped.
textSimilar to
string
integer32-bit unsigned value
signed-integer32-bit signed value
integer88-bit unsigned value
integer1616-bit unsigned value using
network byte order
integer6464-bit unsigned value using
network byte order
dateDate as an integer number of seconds
since 00:00:00 UTC Jan 1 1970
ipaddrIP address in the form
aaa.bbb.ccc.ddd, or a 4-byte binary string
ipaddrv6IPv6 address in the form
2001:db8:148:100::31
ipaddrv4v64 or 16 octets long IPv4 or IPv6
(respectively) address in network byte order
binaryBinary data
abinaryAscend filter, using the special
Ascend filter definition syntax. Radiator is very strict about the
syntax. You must follow the filter definition syntax exactly.
hexadecimalBinary data formatted as
hexadecimal
booleanRequired only by some Nortel/Aptis
CVX vendor-specific attributes. A single byte attribute. Values of 0
or 1 are permitted.
tagged-integer
tagged-string
ipv4prefixIPv4 prefix in the form
192.168.1.0/24
ipv6prefixIPv6 prefix in the form
2001:db8:148:100::/64
ifidIPv6 interface identifier in the form
aaaa:bbbb:cccc:dddd
tlvEncapsulation attribute that contains
one or several attributes
custom
If you redefine an ATTRIBUTE by defining a new name for an
previously defined attribute number, the new definition replaces the old
one. The first is a synonym for the second when used in a
reply.
attrnum may be in decimal, hex (prefixed
by ‘0x’) or octal (prefixed by 0).
ATTRIBUTE also supports optional
flags to control whether the attribute is tagged or requires encryption
like this:
ATTRIBUTE Tunnel-Password 69 string has_tag,encrypt=2
The
permitted flags are:
has_tagSpecifies that the encoded
attribute is prefixed a tag octet. The value of the tag can be
specified in an attribute value with a leading tag number and a
colon.
encrypt=n (n = 1, 2 or 3)
Specified that
the attribute is to encrypted with the specified algorithm. The
following algorithms are supported:
- RADIUS User-Password encryption
- The SALT algorithm as described by RFC 2548
- Symmetric encoding and decoding as required for
Ascend-Send-Secret