Directed Realm Configuration (.dir) File
A directed realm specifies target methods for directed authentication and directed accounting. Its realm configuration file is called
RealmName.dir. By default, an sample .dir file (example.dir) is installed with Steel-Belted Radius Carrier.The directed authentication feature permits the server to bypass its Authentication Methods list and map an incoming RADIUS request to one or more specific authentication methods. Steel-Belted Radius Carrier chooses the destination method based on routing information found in the request packet. The destination methods may be any authentication methods already configured on the local Steel-Belted Radius Carrier server, regardless of how they were configured; for example, a method may have been configured using SBR Administrator, the LDAP configuration interface, or a .aut configuration file.
If no directed authentication method is configured, every request percolates through the same Authentication Methods list, as defined in the authentication methods listed in the Authentication Policies>Order of Methods panel in SBR Administrator. This behavior may or may not be ideal for every customer. Directed authentication lets you tailor an Authentication Methods list to a customer's needs.
Directed accounting is also possible. The destination accounting method may be the Steel-Belted Radius Carrier accounting log, an external database configured using a .acc file, or a distinct accounting log file that contains entries only for this customer.
To activate these features, you must create
RealmName.dir files, place them in the Steel-Belted Radius Carrier directory, and list them in the [Directed] section of proxy.ini. Subsequently, any requests that arrive addressed to one of these realm names are processed on the local server using the instructions you provided in proxy.ini and the correspondingRealmName.dir file.After you edit a
RealmName.dir file, you must apply your changes. If you have added or changed:
- Any directed accounting methods, you must stop and restart the server to load your new configuration.
- Directed authentication methods in which external database (SQL or LDAP) authentication is used, you must stop and restart the server to load your new configuration.
- Directed authentication methods in which local or pass-through (Native, UNIX, Host, or SecurID) authentication is used, you can apply your configuration changes dynamically, without stopping the server.
Issue the HUP signal to the Steel-Belted Radius Carrier process.
kill -HUPProcessIDSteel-Belted Radius Carrier re-reads proxy.ini, filter.ini, and all .pro and .dir files in the server directory, and resets its realm configuration accordingly.
NOTE: If you edit radius.ini while configuring a realm, you must restart Steel-Belted Radius Carrier to load your new configuration.
[Auth] Section
Directed authentication is enabled in a realm by setting the Enable parameter in the [Auth] section of the corresponding
RealmName.dir file, whereRealmNameis the name of the realm. The syntax is:[Auth]Enable = 1StripRealm = 1UseMasterDictionary = yes
[AuthMethods] Section
If directed authentication is enabled, the [AuthMethods] section of a
RealmName.dir file lists one or more authentication methods to be used.[AuthMethods]DescriptionDescriptionMwhere
Descriptionis the "official name" of an authentication method configured on the Steel-Belted Radius Carrier server. For example:[AuthMethods]Native UserSecurID UserSecurID PrefixSecurID SuffixSecurIDUNIX UserUNIX Group<InitializationString=SQL><InitializationString=LDAP>If you want your [AuthMethods] section to reference an external authentication method, a
Descriptionstring must match the names of that method. If you want your [AuthMethods] section to reference an external database, enter the InitializationString value from the [Bootstrap] section of the corresponding .aut file.
[Acct] Section
Directed accounting is enabled in a realm by setting the Enable parameter in the [Acct] section of the corresponding
RealmName.dir file, whereRealmNameis the name of the realm. The syntax is:[Acct]Enable = 1StripRealm = 0RecordLocally = 0UseMasterDictionary = yes
- If set to 1 in the
[Acct]section of aRealmName.dir file, the directed accounting realm calledRealmNameis enabled.- If set to 0, the realm is disabled.
By enabling a directed accounting realm, you make it possible for Steel-Belted Radius Carrier to override the normally configured accounting methods on the local server by providing an alternate list - for requests addressed to this realm only. Details of this list are provided in the
[AcctMethods]section of the sameRealmName.dir file.If a value is supplied for this parameter, accounting packets are forwarded to a list of realms. The setting given must be a section name defined in the proxyrl.ini file that lists the realms to which the accounting packets are forwarded.
See Proxyrl.ini File.
- If set to 1, Steel-Belted Radius Carrier strips the realm name from the username before attempting to authenticate the user's request.
- If set to 0, realm name stripping is disabled.
NOTE: For directed realms, username stripping is enabled (StripRealm = 1) by default. If you want to disable it, you must explicitly set StripRealm to 0.
- If set to
yes, inbound proxy responses for this realm use the master Steel-Belted Radius Carrier dictionary when accounting attributes are filtered in.- If set to
no, proxy responses for this realm use the client-specific dictionary when accounting attributes are filtered in.NOTE: This value overrides the global setting configured in the UseMasterDictionary parameter in the proxy.ini file.
[AcctMethods] Section
If directed accounting is enabled, the [AcctMethods] section of a
RealmName.dir file lists one or more accounting methods to be used. The syntax is:[AcctMethods]DescriptionDescriptionMwhere
Descriptionis the "official name" of a directed accounting method configured in the proxy.ini file.[Called-Station-ID] Section
The [Called-Station-ID] section of a
RealmName.dir file allows Steel-Belted Radius Carrier to select a realm to be used for directed authentication and accounting based on DNIS information supplied in an incoming RADIUS packet. The [Called-Station-ID] section lists each DNIS string that identifies the realm. If this string is found in the Called-Station-Id attribute of an incoming request, the directed authentication and accounting rules found in the correspondingRealmName.dir file are applied to the request.[Called-Station-ID]StringStringMwhere
Stringis a DNIS string.[ModifyUser] Section
The [ModifyUser] section of a realm directed file permits you to decorate a realm, where the realm is determined by other means, such as DNIS or attribute mapping.
This is used mainly to enhance directed realms. For example, the following two users are in the database: george@gm and george@ford. Either user can log in as george, as Steel-Belted Radius Carrier would determine the realm, for example, by DNIS. Based on the realm, Steel-Belted Radius Carrier would append either @gm or @ford to the user name, and then use the Native User directed method to authenticate.