How to access proxy-reply:Packet-Type in if condition
Chidanand
wingscng at yahoo.com
Fri Sep 17 08:13:12 CEST 2010
Alan, can you please throw some light on this issue I am stuck.
Thanks,Chidanand
--- On Thu, 9/16/10, Chidanand <wingscng at yahoo.com> wrote:
From: Chidanand <wingscng at yahoo.com>
Subject: How to access proxy-reply:Packet-Type in if condition
To: freeradius-users at lists.freeradius.org
Date: Thursday, September 16, 2010, 5:54 PM
Hi,
I am using freeRadius 2.1.9 version.
I am trying to update proxy-reply message with additional attributes, I want to do it only if proxy-reply is Access-Accept. I see %{proxy-reply:Packet-Type} returns "Access-Accept" but I am not able to form a if condition, I see following error:
Thu Sep 16 12:20:24 2010 : Info: +- entering group post-proxy {...}
Thu Sep 16 12:20:24 2010 : Info: expand: %{proxy-reply:Packet-Type} -> Access-Accept
Thu Sep 16 12:20:24 2010 : Info: ++[proxy-reply] returns noop
Thu Sep 16 12:20:24 2010 : Info: ++? if (proxy-reply:Packet-Type == "Access-Accept")
Thu Sep 16 12:20:24 2010 : Info: (Attribute proxy-reply:Packet-Type was not found)
Thu Sep 16 12:20:24 2010 : Info: [eap] No pre-existing handler found
Thu Sep 16 12:20:24 2010 : Info: ++[eap]
returns noop
Thu Sep 16 12:20:24 2010 : Info: Found Auth-Type = Accept
Thu Sep 16 12:20:24 2010 : Info: Auth-Type = Accept, accepting the user
Thu Sep 16 12:20:24 2010 : Info: +- entering group post-auth {...}
Thu Sep 16 12:20:24 2010 : Info: ++[exec] returns noop
Sending Access-Accept of id 11 to 192.168.6.181 port 32771
Framed-Protocol = PPP
Service-Type = Framed-User
EAP-Message = 0x030c0004
Class = 0x482404d3000001370001c0a8073f01cb53194e942c94000000000000020f
MS-CHAP-Domain = "\001TESTAD"
MS-CHAP2-Success = 0x01533d33374341363935353838313541433741463032344131333733453832463730424238413846433033
MS-MPPE-Send-Key = 0x6690415a2581f6721c2bd5b7248693f972bd3c750929bb4ab85eccba612b34ee
MS-MPPE-Recv-Key = 0x2a32a3e3f8e828d049c41b18dc8ef342720afe4de007074eb3c880de24a51ba3
Message-Authenticator = 0x00000000000000000000000000000000
User-Name = "Access-Accept"
Thu Sep 16 12:20:24 2010 : Info: Finished request 11.
Thu Sep 16 12:20:24 2010 : Debug: Going to the next request
Thu Sep 16 12:20:24 2010 : Debug: Waking up in 4.8 seconds.
Can we really access proxy-reply:Packet-Type using unlang? Please help me solving this problem.
Thanks,Chidanand
-----Inline Attachment Follows-----
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100916/7941ff18/attachment.html>
More information about the Freeradius-Users
mailing list