Directed Realm Configuration Files
This section discusses how to set up the directed realm configuration files.
Sample radius.ini Realm Settings
The same radius.ini excerpt works for our sample directed realm as for our sample proxy realm. The ExtendedProxy setting needs to be enabled (set to 1). The AttributeEdit setting does not apply to directed realms.
[Configuration]ExtendedProxy=1
NOTE: For syntax details, see [Configuration] Section.
Sample proxy.ini File
The following proxy.ini file registers the proxy realm called sample.com and registers a directed authentication and accounting realm called sample2.com. It defines several directed accounting methods, including those we plan to reference from the sample2.com.pro realm configuration file.
[Realms]sample.com[Directed]sample2.com[DirectedAcctMethods]CustBAcctSQL = c:\radius\CustomerB\theirsql.accCustCAcctAttributes = c:\radius\CustomerC\account.iniCustCAcctSQLConfig = c:\radius\CustomerC\sqlacct.accCustDAcctSQLConfig3 = c:\radius\CustomerD\mysql.acc
NOTE: For syntax details, see proxy.ini File.
The following proxy.ini file specifies that otto@rtt.other.com and carol@3g.other.com would both map to the other.com directed realm.
[Directed]other.com = *.other.comThe following proxy.ini file specifies that otto@rtt.other.com and carol@3g.other.com would map to the other.com directed realm and that caitlin@groton.other.com would map to the groton.other.com directed realm.
[Directed]other.com = *.other.comgroton.other.comSample Directed Realm (.dir) File
The following configuration file must be called sample2.com.dir for it to work with the sample radius.ini file (described on 155) and proxy.ini file (described on 155).
[Auth]Enable = 1StripRealm = 1UseMasterDictionary = yes[Acct]Enable = 1RecordLocally = 1UseMasterDictionary = yes[AuthMethods]Native User[AcctMethods]CustCAcctAttributesCustCAcctSQLConfig[Called-Station-Id]888555121255512340
NOTE: For syntax details, see Directed Realm Configuration (.dir) File.
This sample file configures both directed authentication and directed accounting. It also strips realm routing information from the User-Name prior to authentication.
The [Acct Methods] section of this file lists the two accounting methods for the sample2.com realm. These are CustCAcctAttributes, which specifies how to log attributes to a .act accounting log file on the local server, and CustCAcctSQLConfig, which configures accounting to an external SQL database. Both methods are configured in the [DirectedAcctMethods] section of our sample proxy.ini file, above.