Compiling modules

Alan DeKok aland at
Fri Nov 24 18:01:07 CET 2017

On Nov 24, 2017, at 10:04 AM, Jonathan Anthony <jonathan.anthony at> wrote:
> I have downloaded the source code and built and installed freeradius server
> 3.0.16 on Ubuntu 17. 
> I want to create new modules. I have only found good info on one site
> "Creating modules for FreeRADIUS v3.0.x". Any pointers to other sites - I
> have only just started working with Radius.

  See src/modules/rlm_example/

  It has some example code for doing things.

> My main question, do I have to full radius compile, build and install again.

  That's the easiest way.

> Is there a way of just compiling the module so that the server will pick it
> up? For example I want to make a small change in the rlm_pap.c file

  If the pre-built binary is from the same source you're using, then you should be able to just modify the module.

  But you can't mix & match from (say) a debian package of 3.0.15, and your own custom rlm_pap.

  And why make changes to rlm_pap?  Unlang can do most of what you need.  And if you need something else, maybe other people need it too, and therefore sending the patches back would be useful.

  Alan DeKok.

More information about the Freeradius-Devel mailing list