RADIUS 2.x - modules not loaded correctly

Gary Gatten Ggatten at waddell.com
Mon Dec 14 20:33:53 CET 2009


Interesting...  I often do similar renaming so now I wonder if a similar
issue is causing me problems on my test system....  Thanks for the FYI.

G


-----Original Message-----
From: freeradius-users-bounces+ggatten=waddell.com at lists.freeradius.org
[mailto:freeradius-users-bounces+ggatten=waddell.com at lists.freeradius.or
g] On Behalf Of Axel Vogel
Sent: Monday, December 14, 2009 12:14 PM
To: FreeRadius users mailing list
Subject: RADIUS 2.x - modules not loaded correctly 

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


-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html





<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."
</font>





More information about the Freeradius-Users mailing list