Hi Al,
There is a README.txt file in the src/modules/rlm_sqlcounter that contains
a more complete example of what to put in your radiusd.conf file.
You don't need to put anything in the authenticate block. To activate it,
just add an instance of the rlm_sqlcounter module to your authorize block
*after* the section that sets up the appropriate check item (like
Max-Daily-Session).
I'm not sure if you can define your check item in the users file because
there is an initialization order problem. Your new check item attribute
will not be defined before your users file is parsed resulting in an
error. If anyone knows a work around here, please let me know.
I store my check items in the SQL servers 'radgroupcheck' table.
INSERT INTO radgroupcheck VALUES (6, 'xcqw', 'Max-Monthly-Session',
'648000', ':=');
This, of course, requires that each account be linked to a group ('xcqw' in
this case) using the usergroup table.
I hope this helps.
At 08:48 PM 5/6/2002 -0500, you wrote:
>setup:
>freeradius post .5 (cvs from May 6 2002)
>using sql in accounting (and loving it)
>
>rlm_sqlcounter
>I have gotten the latest cvs in hopes to use rlm_sqlcounter, (as rlm_counter
>crashes on me, something about threads)
>
>
>I am not seeing any 'clear' instructions on usage.
>
>i have put the config from experimental.conf in my radius.conf. so module
>should be loaded,
>how do you 'activate' the features of the module.
>
>not sure what to put under auth
>
>and how to use it in users file, (specifially for groups)
>
>any help would be appreciated. example would be greatly appreciated
>
>Al
>
>
>
>-
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Randy Moore
Axion Information Technologies, Inc.
email [EMAIL PROTECTED]
phone 301-408-1200
fax 301-445-3947
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html