Module pyrad.dictionary
RADIUS dictionary
RADIUS uses dictionaries to define the attributes that can be used in
packets. The Dictionary class stores the attribute definitions from one
or more dictionary files.
Dictionary files are textfiles with one command per line. Comments are
specified by starting with a # character, and empty lines are
ignored.
The commands supported are:
ATTRIBUTE <attribute> <code> <type> [<vendor>]
specify an attribute and its type
VALUE <attribute> <valuename> <value>
specify a value attribute
VENDOR <name> <id>
specify a vendor ID
BEGIN-VENDOR <vendorname>
begin definition of vendor attributes
END-VENDOR <vendorname>
end definition of vendor attributes
The datatypes currently supported are:
string - ASCII string
ipaddr - IPv4 address
integer - 32 bits signed number
date - 32 bits UNIX timestamp
octets - arbitrary binary data
abinary - ASCII encoded binary data
| Exceptions |
ParseError |
Dictionary parser exceptions. |