Subversion Repositories configs

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# -*- text -*-
2
#
3
#  $Id$
4
 
5
#  Persistent, embedded Perl interpreter.
6
#
7
perl {
8
	#
9
	#  The Perl script to execute on authorize, authenticate,
10
	#  accounting, xlat, etc.  This is very similar to using
11
	#  'rlm_exec' module, but it is persistent, and therefore
12
	#  faster.
13
	#
14
	module = ${confdir}/example.pl
15
 
16
	#
17
	#  The following hashes are given to the module and
18
        #  filled with value-pairs (Attribute names and values)
19
	#
20
	#  %RAD_CHECK		Check items
21
	#  %RAD_REQUEST		Attributes from the request
22
	#  %RAD_REPLY		Attributes for the reply
23
	#
24
	#  The return codes from functions in the perl_script
25
	#  are passed directly back to the server.  These
26
	#  codes are defined in doc/configurable_failover,
27
	#  src/include/modules.h (RLM_MODULE_REJECT, etc),
28
	#  and are pre-defined in the 'example.pl' program
29
	#  which is included.
30
	#
31
 
32
	#
33
	#  List of functions in the module to call.
34
	#  Uncomment and change if you want to use function
35
	#  names other than the defaults.
36
	#
37
	#func_authenticate = authenticate
38
	#func_authorize = authorize
39
	#func_preacct = preacct
40
	#func_accounting = accounting
41
	#func_checksimul = checksimul
42
	#func_pre_proxy = pre_proxy
43
	#func_post_proxy = post_proxy
44
	#func_post_auth = post_auth
45
	#func_recv_coa = recv_coa
46
	#func_send_coa = send_coa
47
	#func_xlat = xlat
48
	#func_detach = detach
49
 
50
	#
51
	#  Uncomment the following lines if you wish
52
	#  to use separate functions for Start and Stop
53
	#  accounting packets. In that case, the
54
	#  func_accounting function is not called.
55
	#
56
	#func_start_accounting = accounting_start
57
	#func_stop_accounting = accounting_stop
58
}