Howto use rlm_python or how another way to use "rocket codes"
Alan DeKok
aland at deployingradius.com
Wed Jun 10 14:37:22 CEST 2015
On Jun 10, 2015, at 7:26 AM, Jesse Schlüter <jesse.schlueter at helix360.de> wrote:
> I have a device for which I need authentication in form of a username and
> pre-generated one-time-pads. The device speaks radius flawlessly, so I
> though the easiest setup would be a radius server.
That's the best way.
> Finally I found out that it is possible to "program" my own authentication
> plugin using python for freeradius. There is only one problem: zero
> documentation.
>
> I found the python example "prepaid.py" somewhere on the internet,
Why? The server comes with examples...
> so I was
> able to put my own module together. But how do I tell freeradius to use
> this module? I am not a freeradius expert, and I went through the wiki, but
> again, documentation seems to be sparse on details.
In version 2, see raddb/modules/python. In version 3, raddb/mods-available/python. It contains text which tells you what to do.
Then, use the module by listing "python" in raddb/sites-available/default. That process is documented, too.
Alan DeKok.
More information about the Freeradius-Users
mailing list