Hi. I know it's a stupid question but so far I couldn't manage to dig it out. I'm using FR2 with MySQL backend. All my users belong to one or more group. I usually set the Idle-Timeout attribute using the radgroupreply table, and it works great. For a minority of users I'd like to override this attribute to a different value, but I cannot have FR reply as I wish. Current situation: Radcheck: USERA MD5-Password := somemd5hash Radusergroup: USERA c_gvt 30 Radgroupreply c_gvt Idle-Timeout := 3800 This works fine and replies 3800. If I add USERA Idle-Timeout := 100 to radreply it will still reply 3800. Then I checked manpage of USERS [1] so I changed: Radreply: USERA Idle-Timeout := 100 Radgroupreply c_gvt Idle-Timeout = 3800 but the reply is always the same. What am I missing? thanks [1] http://freeradius.org/radiusd/man/users.html -- Lorenzo Milesi - lorenzo.milesi@yetopen.it YetOpen S.r.l. - http://www.yetopen.it/
Lorenzo Milesi wrote:
I know it's a stupid question but so far I couldn't manage to dig it out.
The answer should be in the debug output.
I'm using FR2 with MySQL backend. All my users belong to one or more group. I usually set the Idle-Timeout attribute using the radgroupreply table, and it works great. For a minority of users I'd like to override this attribute to a different value, but I cannot have FR reply as I wish.
Current situation: Radcheck: USERA MD5-Password := somemd5hash Radusergroup: USERA c_gvt 30 Radgroupreply c_gvt Idle-Timeout := 3800
This works fine and replies 3800.
OK.
If I add
USERA Idle-Timeout := 100
to radreply it will still reply 3800.
Because the radusergroup checks are done AFTER the radreply checks. This is visible in the debug output.
Then I checked manpage of USERS [1] so I changed:
Radreply: USERA Idle-Timeout := 100 Radgroupreply c_gvt Idle-Timeout = 3800
but the reply is always the same. What am I missing?
That should work. What does the debug output say? Alan DeKok.
That should work. What does the debug output say?
I've uploaded the output of freeradius -X here: https://dl.dropboxusercontent.com/u/706934/fr2debug.log Sadly I cannot understand where the Idle-Timeout attribute is taken. The queries looks good. Thanks P.S. is this tool still mantained? http://networkradius.com/freeradius.html -- Lorenzo Milesi - lorenzo.milesi@yetopen.it YetOpen S.r.l. - http://www.yetopen.it/
any help on this? thanks! ----- Messaggio originale -----
Da: "Lorenzo Milesi" <maxxer@ufficyo.com> A: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Inviato: Giovedì, 27 febbraio 2014 9:53:50 Oggetto: Re: User and group attributes
That should work. What does the debug output say?
I've uploaded the output of freeradius -X here: https://dl.dropboxusercontent.com/u/706934/fr2debug.log Sadly I cannot understand where the Idle-Timeout attribute is taken. The queries looks good.
Thanks
P.S. is this tool still mantained? http://networkradius.com/freeradius.html
-- Lorenzo Milesi - lorenzo.milesi@yetopen.it YetOpen S.r.l. - http://www.yetopen.it/
check *read_groups *value under sql.conf . If set to 'yes' (default) we read the group tables If set to 'no' the user MUST have Fall-Through = Yes in the radreply table On Thu, Mar 6, 2014 at 2:21 PM, Alan DeKok <aland@deployingradius.com>wrote:
Lorenzo Milesi wrote:
any help on this?
No idea. Your configuration is rather complicated. Perhaps try a simpler configuration just for testing.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alan DeKok -
Lalit Choudhary -
Lorenzo Milesi