📄 radiusd_test.py
字号:
#! /usr/bin/env python## Python module test# Miguel A.L. Paraz <mparaz@mparaz.com>## $Id$import radiusddef instantiate(p): print "*** instantiate ***" print pdef authorize(p): print "*** authorize ***" print radiusd.radlog(radiusd.L_INFO, '*** radlog call in authorize ***') print print p return radiusd.RLM_MODULE_OKdef preacct(p): print "*** preacct ***" print p return radiusd.RLM_MODULE_OKdef accounting(p): print "*** accounting ***" radiusd.radlog(radiusd.L_INFO, '*** radlog call in accounting (0) ***') print print p return radiusd.RLM_MODULE_OKdef preproxy(p): print "*** preproxy ***" print p return radiusd.RLM_MODULE_OKdef postproxy(p): print "*** postproxy ***" print p return radiusd.RLM_MODULE_OKdef postauth(p): print "*** postauth ***" print p return radiusd.RLM_MODULE_OKdef detach(): print "*** goodbye from radiusd_test.py ***" return radiusd.RLM_MODULE_OK
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -