The RADIUS Dictionary File (radius.txt) is a text file which defines the RADIUS attributes used in Evolynx RADIUS Server. This file is loaded and parsed by the server application at start-up and if a change is made to contents of this file, Evolynx server must be re-started for changes to effect.
Dictionary file is a text file. Each line of text is parsed separately than other lines. It means that a command can not be broken into more than one line. TAB and space characters can be used as separators between parameters of each command. If a line starts with “ -” character, that line will be ignored. This feature can be used for placing remarks and descriptions in the file. Each line of dictionary file defines one entry using a command. Currently there are 2 different types of dictionary entries:
If a line is started with ATTRIBUTE command, that line will be parsed as a normal RADIUS attribute. Format of an ATTRIBUTE command is:
ATTRIBUTE name code type <nowiki>[Used_in ...]</nowiki>
This is a string of characters used as a name for the attribute. Name is NOT case-sensitive. Space and TAB characters are not permitted in a name. Name must be unique.
Code is an integer number normally in the range of 1-191. This is the Attribute code defined in RADIUS RFCs.
This parameter specifies how Evolynx RADIUS will interpret the value of this attribute. There are 4 different types defined in Evolynx RADIUS server:
These parameters are up to 6 values of 0 or 1. Each of these values determines if this attribute is used in any of following six primary RADIUS packet types respectively:
Example: User-Name attribute is used in Access Request, Access Accept and Accounting Request packets, so we need to put “1” in positions 1, 2 and 5, as follows:
1 1 0 0 1 0
Evolynx RADIUS server uses these values when creating RADIUS packets (either to send to a client device or to forward to a remote server). For example, if a value of 1 exists for Access Accept (second position), then this attribute will be included in the outgoing packet (Only if it has a value).
If a line is started with VENDORATTR command, that line will be parsed as a Vendor Specific Attribute (VSA). Format of an VENDORATTR command is:
ATTRIBUTE vendorID name code type <nowiki>[Used_in ...]</nowiki>
Specifies the Vendor. For example 311 is for Microsoft and 9 is for Cisco.
Code is an integer number specifying this VSA. This code is defined by each vendor. (All other parameters are as described for ATTRIBUTE command.)