Gabriel Blanchard wrote:
So I am in the process of upgrading from freeradius 1.x to 2.x. I have scripts that check if my radius configuration is correct before I actually run radiusd. I'm more specifically interested in checking if my fastusers file syntax is correct before loading it.
In 2.x, there is no benefit to using "fastusers". The "users" file code has been updated to use hash tables internally. It does everything the "fastusers" file does.
I found out that by running radiusd -n radiusd-test -C -X it wouldn't check my fastusers module at all.
Module: Linked to module rlm_fastusers Module: Skipping instantiation of fastusers
Yes.
After some more digging I found that the module needs to have a type flag of "RLM_TYPE_CHECK_CONFIG_SAFE" for it to check. Now I'm not sure if I should just blindly change the source code and add this flag in the module or not. Should I just try it and report back if it works?
That may work. Realistically, the "fastusers" module should be deleted. Please try using the "files" module instead. Alan DeKok.