View attributes of an connection

Jean Carlos Oliveira Guandalini jean.guandalini at corp.visaonet.com.br
Mon Jul 25 23:05:26 CEST 2011


Thanks Arran, it's works for me.

The reason i need this it's because a module is not set an attribute,
see the log:

Mon Jul 25 18:04:03 2011 : Debug: rlm_backcounter/time-limit:
(rlm_backcounter.c#780) backcounter_authorize(): user prepago is over
limit - adding 'Monthly-Time-Exceeded' attribute
Mon Jul 25 18:04:03 2011 : Debug: rlm_sql (sql): Released sql socket id: 3
Mon Jul 25 18:04:03 2011 : Info: ++[time-limit] returns ok
Mon Jul 25 18:04:03 2011 : Info: 	expand: %{Monthly-Time-Exceeded} ->

In the source of module have this:
vp = radius_paircreate(request, &request->reply->vps,data->overvap_attr,
PW_TYPE_INTEGER);
vp->vp_integer = 1;

Any help?


Em 25-07-2011 17:44, Arran Cudbard-Bell escreveu:
> Make that:
> 
> update request {
> 	Tmp-String-0 := "%{variable I want to expand}"
> }
> 
> 
> On 25 Jul 2011, at 22:34, Arran Cudbard-Bell wrote:
> 
>>
>> On 25 Jul 2011, at 22:24, Jean Carlos Oliveira Guandalini wrote:
>>
>>> I need to find the value of an attribute created by a module, it is
>>> possible? radiusd -X or radiusd -xxx does not show these values.
>>
>> Sure you just need to expand it somewhere.
>>
>> update request {
>> 	Tmp-String-0 := "%{variable I want to expand}
>> }
>>
>> -Arran
>>
>> Arran Cudbard-Bell
>> a.cudbardb at freeradius.org
>>
>> RADIUS - Half the complexity of Diameter
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
> 
> Arran Cudbard-Bell
> a.cudbardb at freeradius.org
> 
> RADIUS - Half the complexity of Diameter
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list