Package pyrad :: Module dictionary
[show private | hide private]
[frames | no frames]

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

Classes
Attribute  
Dictionary RADIUS dictionary class

Exceptions
ParseError Dictionary parser exceptions.

Generated by Epydoc 2.1 on Wed Jun 2 14:19:55 2004 http://epydoc.sf.net