How to determine packet-type in proxy-reply

Chidanand Gangur chidanand.gangur at gmail.com
Tue Sep 14 08:42:55 CEST 2010


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) {
}

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100914/32b3c3bf/attachment.html>


More information about the Freeradius-Users mailing list