#! /usr/bin/env python

import radiusd

def authorize1(p):
  print "*** authorize1 ***"
  reply = ( ('Reply-Message', 'Hello from rlm_example instance1'), )
  config = ( ('Cleartext-Password', 'hello'), )
  return (radiusd.RLM_MODULE_OK, reply, config)

def authorize2(p):
  print "*** authorize2 ***"
  reply = ( ('Reply-Message', 'Hello from rlm_example instance2'), )
  config = ( ('Cleartext-Password', 'hello'), )
  return (radiusd.RLM_MODULE_OK, reply, config)
