~yolanda.robla/ubuntu/saucy/freeradius/dep-8-tests

« back to all changes in this revision

Viewing changes to raddb/modules/perl

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20091123035737-snauioz5r9tf8sdr
Tags: upstream-2.1.7+dfsg
ImportĀ upstreamĀ versionĀ 2.1.7+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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           Read-only       Check items
 
21
        #  %RAD_REQUEST         Read-only       Attributes from the request
 
22
        #  %RAD_REPLY           Read-write      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
}