Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Sample Script


This is an example of a simple realm selection script and its configuration settings.

  1. To test this script, copy these lines to a new text file named SampleScript.jsi in the server’s \radiusdir\scripts directory.

  2. Next, edit the \radiusdir\proxy.ini file.

    In the [Processing] section at the top of the file, you see this comment line:

    Remove the “;” and replace <RealmScript> with the actual file name (omit the file extension):


    Use only the script file base name only when configuring the Script setting. If you specify the .jsi extension, Steel-Belted Radius Carrier fails to load the file.

  3. If you wish to check the script syntax and environment, set up and run the scriptcheck utility, discussed in scriptcheck.

  4. Restart the Steel-Belted Radius Carrier process.

    When the server starts, log messages should indicate that the script loaded and is ready to run:

  5. When a RADIUS request is received, the script executes and messages similar to these appear in the log:


    The actual realm name returned by the script depends on the Steel-Belted Radius Carrier configuration and the suffix decoration of the username specified in the RADIUS request.

For detailed information about the proxy.ini file, see Realm Configuration Files of the SBR Carrier Reference Guide.