On Fri, Jul 25, 2003 at 10:20:13PM -0700, Alex Chen wrote: > The counter module as a configuration element > 'check-name'. In the example shown in radiusd.conf > it is set to Max-Daily-Session. The comment indicates > that this 'Max-Daily-Session' can be specified in > DEFAULT stanza. > > I am pretty sure when I tried to set > DEFAULT Max-Daily-Session := 20 > in 'users', the radiusd complained that it > could not find such attribute and bailed out.
Did you see something like 'rlm_files: matched DEFAULT at NNN' in debug output? If not, your DEFAULT entry did not match. > That's the reason I tried to use 'Session-Timeout'. > But when I tested it again with freeradius 0.9, the server too it. > I do not know if it was my typo previously or something changed > in the server. What version was it? The 0.9 release of FreeRADIUS has a lot of bug fixes from 0.8.1. > Anyway, I cannot find an attribute name called 'Max-Daily-Session' > in the dictionary. How does the server know this? > I thought only an attribute can be specified in the 'users' file, > or can we just use anything we want? > > Other than 'Max-Daily-Session' what else can be used? This attribute is not in dictionary, it's dynamic. You can use whatever you want attribute name in check-name, the counter module will register this attribute during initialization. -- Fduch M. Pravking - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
