How do I get every userid passed to an rlm_python module

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Feb 11 03:15:54 CET 2016


> On 10 Feb 2016, at 17:38, Jim Whitescarver <jimscarver at gmail.com> wrote:
> 
> 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
> 

Have you tried just returning 2? That's the actual C value of RLM_MODULE_OK.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160210/7a9e517e/attachment.sig>


More information about the Freeradius-Users mailing list