⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radiusd_test.py

📁 free radius编程。完成AAA的实现
💻 PY
字号:
## Python module test# Miguel A.L. Paraz <mparaz@mparaz.com>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 detach():  print "*** goodbye from radiusd_test.py ***"  return radiusd.RLM_MODULE_OK

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -