Examples of using new module methods
authoraland <aland>
Wed, 21 Nov 2007 09:38:29 +0000 (09:38 +0000)
committeraland <aland>
Wed, 21 Nov 2007 09:38:29 +0000 (09:38 +0000)
raddb/experimental.conf
src/modules/rlm_python/radiusd_test.py

index b7424d4..0f4c96c 100644 (file)
                mod_accounting = radiusd_test
                func_accounting = accounting
 
-               mod_preacct = radiusd_test
-               func_preacct = preacct
+               mod_preproxy = radiusd_test
+               func_preproxy = preproxy
+
+               mod_postproxy = radiusd_test
+               func_postproxy = postproxy
+
+               mod_postauth = radiusd_test
+               func_postauth = postauth
 
                mod_detach = radiusd_test
                func_detach = detach
index 3db91f0..2d1bbb3 100644 (file)
@@ -31,6 +31,21 @@ def accounting(p):
   print p 
   return radiusd.RLM_MODULE_OK
 
+def preproxy(p):
+  print "*** preproxy ***"
+  print p 
+  return radiusd.RLM_MODULE_OK
+
+def postproxy(p):
+  print "*** postproxy ***"
+  print p 
+  return radiusd.RLM_MODULE_OK
+
+def postauth(p):
+  print "*** postauth ***"
+  print p 
+  return radiusd.RLM_MODULE_OK
+
 
 def detach():
   print "*** goodbye from radiusd_test.py ***"