How to determine packet-type in proxy-reply

Alan DeKok aland at deployingradius.com
Tue Sep 14 09:51:59 CEST 2010


Chidanand Gangur wrote:
> I am trying to add some attribute in proxy-reply, I want to do it only
> if it is Access-Accept packet. I am trying to achieve it using unlang.
> I have tried following options and none of them have worked
> 
> if (%{proxy-reply:Packet-Type} == 2) {
> }
> 
> if(proxy-reply:Packet-Type == "Access-Accept"){
> }
> 
> if(reply:Packet-Type == "Access-Accept"{
> }
> 
> if(proxy-reply:Packet-Type == "2"){
> }
> 
> Tue Sep 14 06:34:14 2010 : Info: +- entering group post-proxy {...}
> Tue Sep 14 06:34:14 2010 : Info: ++? if (proxy-reply:Packet-Type == "2")
> Tue Sep 14 06:34:14 2010 : Info: (Attribute proxy-reply:Packet-Type was
> not found)
> 
> I have read there is meta-attribute as Packet-Type but do not know how
> to access it,  please point me to document which explains meta-attribute
> or suggest me how do I access packet-type
>  
> 
> -- 
> Chidanand Gangur
> Pune.
> 
> 
> ------------------------------------------------------------------------
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list