Problem with module and users file
Jean Carlos Oliveira Guandalini
jean.guandalini at corp.visaonet.com.br
Wed Jul 20 16:32:59 CEST 2011
Hello, i'm using backcounter (rlm_backcounter) module. This module set a
attribute and this attribute is compared in USERS file. Freeradius
version 2.1.11.
users file:
DEFAULT Monthly-Time-Exceeded == 1
Framed-Pool = "exceeded",
Fall-Through = Yes
The problem is what the freeradius never match with this entry in users
file.
In the source code of rlm_backcounter this lines are used to create a
attribute:
vp = radius_paircreate(request, &request->reply->vps,
data->overvap_attr, PW_TYPE_INTEGER);
vp->vp_integer = 1;
The module is running, see the logs:
Wed Jul 20 11:06:26 2011 : Debug: rlm_backcounter/time-limit:
(rlm_backcounter.c#615) backcounter_authorize(): resetting user
'prepago' counter
Wed Jul 20 11:06:26 2011 : Debug: rlm_backcounter/time-limit:
(rlm_backcounter.c#653) backcounter_authorize(): using resetval defined
in radreply: 0
Wed Jul 20 11:06:26 2011 : Debug: rlm_backcounter/time-limit:
(rlm_backcounter.c#780) backcounter_authorize(): user prepago is over
limit - adding 'Monthly-Time-Exceeded' attribute
Wed Jul 20 11:06:26 2011 : Debug: rlm_backcounter/time-limit:
(rlm_backcounter.c#788) backcounter_authorize(): data->overvap_attr = 3102
Wed Jul 20 11:06:26 2011 : Debug: rlm_sql (sql): Released sql socket id: 1
Wed Jul 20 11:06:26 2011 : Info: ++[time-limit] returns ok
Wed Jul 20 11:06:26 2011 : Info: [files] users: Matched entry DEFAULT at
line 144
Wed Jul 20 11:06:26 2011 : Info: ++[files] returns ok
Is there some setting that needs to be made to accept this attribute?
*** I used this module with freeradius-1.1.8 without problems, but we
need running in freeradius-2.x
Thanks
Jean
More information about the Freeradius-Users
mailing list