radiusd_test.py

来自「freeradius-server-2.1.3.tar.gz安装源文件」· Python 代码 · 共 54 行

PY
54
字号
#! /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 + =
减小字号Ctrl + -
显示快捷键?