How do I get every userid passed to an rlm_python module

Jim Whitescarver jimscarver at gmail.com
Thu Feb 11 02:38:02 CET 2016


I added the authenticate  method to the distributed example.py

def authenticate(p):
  print "*** authenticate ***"
  print p
  return radiusd.RLM_MODULE_OK

but still getting

Found Auth-Type = python
(0) # Executing group from file /usr/local/etc/raddb/sites-enabled/default
(0)   Auth-Type python {
(0)     [python] = noop
(0)   } # Auth-Type python = noop
(0) Failed to authenticate the user

:-(

Jim


On Wed, Feb 10, 2016 at 7:38 PM, Matthew Newton <mcn4 at leicester.ac.uk>
wrote:

> On Wed, Feb 10, 2016 at 07:00:54PM -0500, Jim Whitescarver wrote:
> > (0)   Auth-Type python {
> > (0)     [python] = noop
> > (0)   } # Auth-Type python = noop
> >
> > Any clues?
>
> Has your python code got an authenticate() function, and does it
> return OK? The copy you posted originally hasn't.
>
> Matthew
>
>
> --
> Matthew Newton, Ph.D. <mcn4 at le.ac.uk>
>
> Systems Specialist, Infrastructure Services,
> I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
>
> For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>


More information about the Freeradius-Users mailing list