- # Persistent, embedded Perl interpreter.
- #
- perl {
- #
- # The Perl script to execute on authorize, authenticate,
- # accounting, xlat, etc. This is very similar to using
- # 'rlm_exec' module, but it is persistent, and therefore
- # faster.
- #
- module = /path/to/your/perl_module.pm
-
- #
- # The following hashes are given to the module and
- # filled with value-pairs (Attribute names and values)
- #
- # %RAD_CHECK Read-only Check items
- # %RAD_REQUEST Read-only Attributes from the request
- # %RAD_REPLY Read-write Attributes for the reply
- #
- # The return codes from functions in the perl_script
- # are passed directly back to the server. These
- # codes are defined in doc/configurable_failover,
- # src/include/modules.h (RLM_MODULE_REJECT, etc),
- # and are pre-defined in the 'example.pl' program
- # which is included.
- #
-
- #
- # List of functions in the module to call.
- # Uncomment and change if you want to use function
- # names other than the defaults.
- #
- #func_authenticate = authenticate
- #func_authorize = authorize
- #func_preacct = preacct
- #func_accounting = accounting
- #func_checksimul = checksimul
- #func_pre_proxy = pre_proxy
- #func_post_proxy = post_proxy
- #func_post_auth = post_auth
- #func_xlat = xlat
- #func_detach = detach
-
- #
- # Uncomment the following lines if you wish
- # to use separate functions for Start and Stop
- # accounting packets. In that case, the
- # func_accounting function is not called.
- #
- #func_start_accounting = accounting_start
- #func_stop_accounting = accounting_stop
-
- # Uncomment the following lines if your perl is
- # compiled with threads support.
- # The settings below are the defaults.
- #
- #max_clones = 32
- #start_clones = 32
- #min_spare_clones = 0
- #max_spare_clones = 32
- #cleanup_delay = 5
- #max_request_per_clone = 0
-
- }
-
- #