How to determine packet-type in proxy-reply

2010-09-14 Thread Chidanand Gangur
Hi, I am using freeRADIUS verison 2.1.9. 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) { }

Re: How to determine packet-type in proxy-reply

2010-09-14 Thread Alan DeKok
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) { }

Re: How to determine packet-type in proxy-reply

2010-09-14 Thread Chidanand Gangur
On Tue, Sep 14, 2010 at 1:35 PM, Alan DeKok al...@deployingradius.comwrote: Chidanand Gangur wrote: 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