Re: How to access proxy-reply:Packet-Type in if condition

2010-09-20 Thread Alan DeKok
Chidanand Gangur wrote:
> Sorry, I did not clearly understand your response.  

  I am saying that you can reference the proxy reply Packet-Type.  It works.

> Are you saying that, it will be possible to write
> if (proxy-reply:Packet-Type == "Access-Accept"){
> update proxy-reply{
> attr = value
> .
> }
> }
> 
> in freeRADIUS version 2.1.10

  That's what I meant.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: How to access proxy-reply:Packet-Type in if condition

2010-09-20 Thread Chidanand Gangur
Hi Alan,

Sorry, I did not clearly understand your response.
Are you saying that, it will be possible to write
if (proxy-reply:Packet-Type == "Access-Accept"){
update proxy-reply{
attr = value
.
}
}

in freeRADIUS version 2.1.10


Thanks,
Chidanand





On Fri, Sep 17, 2010 at 2:33 PM, Alan DeKok wrote:

> Chidanand wrote:
> > Alan, can you please throw some light on this issue I am stuck.
>
>   It works in the head of the v2.1.x branch.  i.e. what will become 2.1.10.
>
> post-proxy {
>   update reply {
>  Filter-Id := "%{proxy-reply:Packet-Type}"
>   }
> ...
> }
>
>  And the client gets:
>
>Filter-Id = "Access-Accept"
>
>
>  Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>



-- 
Chidanand Gangur
Pune.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: How to access proxy-reply:Packet-Type in if condition

2010-09-17 Thread Alan DeKok
Chidanand wrote:
> Alan, can you please throw some light on this issue I am stuck.

  It works in the head of the v2.1.x branch.  i.e. what will become 2.1.10.

post-proxy {
   update reply {
  Filter-Id := "%{proxy-reply:Packet-Type}"
   }
...
}

  And the client gets:

Filter-Id = "Access-Accept"


  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: How to access proxy-reply:Packet-Type in if condition

2010-09-16 Thread Chidanand
Alan, can you please throw some light on this issue I am stuck.
Thanks,Chidanand


--- On Thu, 9/16/10, Chidanand  wrote:

From: Chidanand 
Subject: How to access proxy-reply:Packet-Type in if condition
To: freeradius-users@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 = 0x482404d301370001c0a8073f01cb53194e942c94020f
MS-CHAP-Domain = "\001TESTAD"
MS-CHAP2-Success = 
0x01533d33374341363935353838313541433741463032344131333733453832463730424238413846433033
MS-MPPE-Send-Key = 
0x6690415a2581f6721c2bd5b7248693f972bd3c750929bb4ab85eccba612b34ee
MS-MPPE-Recv-Key = 
0x2a32a3e3f8e828d049c41b18dc8ef342720afe4de007074eb3c880de24a51ba3
Message-Authenticator = 0x
   
 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


  -
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

How to access proxy-reply:Packet-Type in if condition

2010-09-16 Thread Chidanand
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 = 0x482404d301370001c0a8073f01cb53194e942c94020f
MS-CHAP-Domain = "\001TESTAD"
MS-CHAP2-Success = 
0x01533d33374341363935353838313541433741463032344131333733453832463730424238413846433033
MS-MPPE-Send-Key = 
0x6690415a2581f6721c2bd5b7248693f972bd3c750929bb4ab85eccba612b34ee
MS-MPPE-Recv-Key = 
0x2a32a3e3f8e828d049c41b18dc8ef342720afe4de007074eb3c880de24a51ba3
Message-Authenticator = 0x
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



  -
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html