$INCLUDE ignored by freeradius

Krzysztof Grobelak kgrobelak at airspeed.ie
Wed Aug 22 12:58:20 CEST 2012


What I expect to happen is that the INCLUDE command will "include" the 
users.group1 file in to the main users file and that the user will be found.

What actually happens is that the users file is parsed and the only 
matched entry is the DEFAULT entry at the bottom of the main users file 
and the include directive is ignored.

I had similar setup on another freeradius server where it was working as 
expected that is the reason why I am confused.

I used diff to confirm that the config files are exactly the same on 
both servers.

I will provide radiusd -X logs as soon as i get the chance.


On 22/08/12 11:28, Alan DeKok wrote:
> Krzysztof Grobelak wrote:
>> Users will be authenticated if their profile is present in the users
>> file but when i place the profile in external file users.group1 and then
>> add
>> $INCLUDE users.group1 to the main users file the authentication fails as
>> it never finds a match in users file.
>    What do you mean "it doesn't work" ?
>    See the FAQ for "it doesn't work".
>    What do you expect to see happening?  What actually happens?
>    The $INCLUDE is just a short-cut for "cat":
> # -- users file
> $INCLUDE users1
> $INCLUDE users2
> #--
>    Results in *exactly* the same behavior as:
> $ cat users1 users2 > users
>    Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

NEW! See our Ka Uplink Van at IBC in Amsterdam; Stand OE 117, September 7-11, 2012

More information about the Freeradius-Users mailing list