$INCLUDE ignored by freeradius

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Aug 23 11:51:17 CEST 2012


On 23 Aug 2012, at 10:41, "Krzysztof Grobelak" <kgrobelak at airspeed.ie> wrote:

> Hello and thanks for assistance.
> 
> I just compiled freeRadius with those debug entries and the radiusd -X now shows:
> 
> Module: Instantiating module "files" from file /usr/local/etc/raddb/mods-enabled/files
>  files {
>    usersfile = "/usr/local/etc/raddb/users"
>    acctusersfile = "/usr/local/etc/raddb/acct_users"
>    preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
>    compat = "no"
>  }
> reading pairlist file /usr/local/etc/raddb/users
> reading pairlist file /usr/local/etc/raddb/
> reading pairlist file /usr/local/etc/raddb/

What are those ^ - That's weird - why is it just the path and not the filename - do you have two include statements?

> reading pairlist file /usr/local/etc/raddb/acct_users
> reading pairlist file /usr/local/etc/raddb/preproxy_users
> 
> So freeradius definitely not getting a handle on those files that looks to me more like a system issue that a radius.
> I am running this freeradius on a virtual server OpenSUSE 12.1 using KVM/Qemu.
> 
> Did anybody came across of issue like that??
> 
> Thanks
> Kris
> 
> On 22/08/12 23:54, Arran Cudbard-Bell wrote:
>> On 22 Aug 2012, at 17:42, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
>> 
>>> On 22 Aug 2012, at 17:26, Klaus Klein <k.klein at gmx.de> wrote:
>>> 
>>>> Am 22.08.2012 13:48, schrieb Alan DeKok:
>>>>> Krzysztof Grobelak wrote:
>>>>>> 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.
>>>>>  The behavior of the "users" file is documented.  There's no need to
>>>>> say "I expect this to happen".  The exact behavior is documented.
>>>>> 
>>>>>> 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.
>>>>>  No, that doesn't happen.
>>>>> 
>>>>>  If the include directive is ignored, that's because either it's not
>>>>> being seen, or the included file is empty.
>>>>> 
>>>>>  Read the debug log to see.  It *prints out* the file it's including.
>>>>> It's not hard to see this.
>>>> @ Alan
>>>> I just verified that on a 2.1.10 server and it seems that files, included with the $INCLUDE statement in the users file, are *not* printed out to the debug log.
>>> Yes, looks that way.
>>> 
>>> https://github.com/alandekok/freeradius-server/blob/master/src/main/filesc#L135
>>> 
>>> It'll only print out debug messages if it can't open the file.
>> Added extra debug statement. Please build from v2.1.x branch or master.
>> 
>> -Arran
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> 
> 
> http://www.livelinx.tv/
> NEW! See our Ka Uplink Van at IBC in Amsterdam; Stand OE 117, September 7-11, 2012
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list