Using the authenticate function on rlm_python

Francis Augusto Medeiros-Logeay r_f at med-lo.eu
Fri Nov 15 08:28:25 UTC 2024



> On 14 Nov 2024, at 21:59, Alan DeKok <aland at deployingradius.com> wrote:
> 
> On Nov 14, 2024, at 3:29 PM, Francis Augusto Medeiros-Logeay via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
>> I am trying to write a python script to be used by the python module of Freeradius.
>> 
>> My main goal is to send an Access-Challenge to the user so that he would reply to that challenge.
> 
>  Ok.
> 
>> On perl, usually this «Response-Packet-Type» is configured on RAD_CHECK. But how do we send this in Python?
> 
>  It's almost the same thing.  See the documentation in mods-available/python3.
> 
>  Set
> 
> 	pass_all_vps = yes
> 
>  And then modify the "config" list.

Thanks a lot, Alan. It works!

I was wondering if there’s any example on how to handle threads here. 
The thing is that I’ll be using python there to handle push notifications, which might be blocking. I’m not being able to have concurrent authentication requests. according to the documentation, threading seems to be supported, but I can’t figure out how.

Best,

Francis 


More information about the Freeradius-Users mailing list