freeradius 3.0.0 fails to start on ppc64 and s390 architectures

John Dennis jdennis at redhat.com
Thu Nov 14 03:48:38 CET 2013


On the ppc64 and s390 architectures radiusd fails to start emitting
these errors:

Error: /etc/raddb/mods-enabled/echo[34]: Cannot read output pairs if
wait = no
Error: /etc/raddb/mods-enabled/echo[34]: Instantiation failed for module
"echo"

The problem is due to using the wrong type in the module config struct
passed to the config file parser. The type was declared as bool but
conffile.c treats PW_TYPE_BOOLEAN as an int. This causes an if test to
fail because the bool value is not true when it should be. This is in
rlm_exec.c. I found 1 other module which had bool's declared for
PW_TYPE_BOOLEAN config items, rlm_pap.c.

Attached is a git formatted patch which changes 3 bool declarations to
int and include a full explanation in the git commit message. The
attachment can be applied with git apply.

-- 
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PW_TYPE_BOOLEAN-config-item-should-be-declared-int-n.patch
Type: text/x-patch
Size: 2145 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20131113/c1258847/attachment.bin>


More information about the Freeradius-Devel mailing list