~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to src/modules/rlm_python/radiusd_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20091123035737-zsgtzhfych8hir68
Tags: 2.1.7+dfsg-1
* Adopting the package, closes: #536623.
* New upstream version, closes: #513484.
  + Fixes the blooper in unlang evaluation logic, closes: #526175.
* Used quilt (and added README.source), and moved upstream file patching
  into debian/patches/. The source is no longer in collab-maint git
  (to make it simpler for me to finally get this out the door), but
  kept the .gitignore should we need that again.
* Dropped the dialup_admin/bin/backup_radacct patch (integrated upstream).
* Dropped the raddb/Makefile patch (problem no longer exists upstream).
* Dropped the lib/packet.c lib/radius.c main/listen.c patches (was from
  upstream 2.0.5 anyway).
* Dropped references to otp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Dropped references to snmp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Ship /etc/freeradius/modules/* in the freeradius package.
* Stop shipping sites-enabled symlinks in the package and instead create
  them only on initial install, thanks to Matej Vela, closes: #533396.
* Add export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" to the init script
  at the request of John Morrissey, closes: #550143.
* Stop installing /var/run/freeradius in the package to silence Lintian.
  The init script already recreates it at will.
* Remove executable bit from example.pl to silence Lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Python module test
4
4
# Miguel A.L. Paraz <mparaz@mparaz.com>
5
5
#
6
 
# $Id: radiusd_test.py,v 1.3 2007/11/21 09:38:29 aland Exp $
 
6
# $Id$
7
7
 
8
8
import radiusd
9
9
 
31
31
  print p 
32
32
  return radiusd.RLM_MODULE_OK
33
33
 
34
 
def preproxy(p):
35
 
  print "*** preproxy ***"
36
 
  print p 
37
 
  return radiusd.RLM_MODULE_OK
38
 
 
39
 
def postproxy(p):
40
 
  print "*** postproxy ***"
41
 
  print p 
42
 
  return radiusd.RLM_MODULE_OK
43
 
 
44
 
def postauth(p):
45
 
  print "*** postauth ***"
 
34
def pre_proxy(p):
 
35
  print "*** pre_proxy ***"
 
36
  print p 
 
37
  return radiusd.RLM_MODULE_OK
 
38
 
 
39
def post_proxy(p):
 
40
  print "*** post_proxy ***"
 
41
  print p 
 
42
  return radiusd.RLM_MODULE_OK
 
43
 
 
44
def post_auth(p):
 
45
  print "*** post_auth ***"
 
46
  print p 
 
47
  return radiusd.RLM_MODULE_OK
 
48
 
 
49
def recv_coa(p):
 
50
  print "*** recv_coa ***"
 
51
  print p 
 
52
  return radiusd.RLM_MODULE_OK
 
53
 
 
54
def send_coa(p):
 
55
  print "*** send_coa ***"
46
56
  print p 
47
57
  return radiusd.RLM_MODULE_OK
48
58