RADIUS 2.x - modules not loaded correctly

Axel Vogel axel.vogel at bkg.bund.de
Mon Dec 14 19:13:48 CET 2009


Hi all

I want to inform the community about a mistake I run into and wish
that nobody run into this after me.

It's my style to copy an original file to a backup version before
modifying it. Therefore I copied the ${confdir}/modules/mschap to
${confdir}/modules/mschap.ori and edited the ${confdir}/modules/mschap.
Watching radiusd -xX I saw that my modifications to mschap did not work.
It took me hours to figure out the following:

All files (matching the regex /[a-zA-Z0-9_.]+/) in directory ${confdir}/modules
are loaded into radiusd at startup time.
${confdir}/mschap.ori is loaded previous to ${confdir}/modules/mschap
[I don't know why] and gives the old settings to the radiusd.
After renaming ${confdir}/mschap.ori to ${confdir}/mschap-ori everything
worked well. Because the minus sign don't match /[a-zA-Z0-9_.]+/

My warning:
Beware of having private files in ${confdir}/modules.

--
To the developers:
I propose to name the module files with static suffix (like .mod or .rlm)
and load only files with this suffix via $INCLUDE ${confdir}/modules/*.mod.


Best regards

Axel Vogel





More information about the Freeradius-Users mailing list