3 # Python module example file
4 # Miguel A.L. Paraz <mparaz@mparaz.com>
11 print "*** instantiate ***"
13 # return 0 for success or -1 for failure
16 print "*** authorize ***"
18 radiusd.radlog(radiusd.L_INFO, '*** radlog call in authorize ***')
24 return radiusd.RLM_MODULE_OK
27 print "*** preacct ***"
29 return radiusd.RLM_MODULE_OK
32 print "*** accounting ***"
33 radiusd.radlog(radiusd.L_INFO, '*** radlog call in accounting (0) ***')
36 return radiusd.RLM_MODULE_OK
39 print "*** pre_proxy ***"
41 return radiusd.RLM_MODULE_OK
44 print "*** post_proxy ***"
46 return radiusd.RLM_MODULE_OK
49 print "*** post_auth ***"
51 return radiusd.RLM_MODULE_OK
54 print "*** recv_coa ***"
56 return radiusd.RLM_MODULE_OK
59 print "*** send_coa ***"
61 return radiusd.RLM_MODULE_OK
65 print "*** goodbye from example.py ***"
66 return radiusd.RLM_MODULE_OK