I am not sure how to achieve this using rlm_attr_rewrite (probably others can help), but you can write your own "post-proxy" method. Add that module in the "post-proxy" section of radius.conf, so that your post-proxy method is called whenever the Radius server receives a reply for the proxied request. In that post-proxy method you can have whatever case you need based on your requirements.
-----Original Message----- From: Allen Chung [mailto:[EMAIL PROTECTED] Sent: Sunday, November 16, 2003 6:16 PM To: [EMAIL PROTECTED] Subject: Re: How to insert an attribuite into a proxy-reply packet ? Sorry, I don't know how to make it work. Could you tell me more about it ? I use freeradius to be a proxy server. A <===> MySite <=====> B I want each Auth-Reply to be one of below cases. 1. If the Session-Timeout is defined and the value is great than 0, proxy the reply-packet without change. 2. If the Session-Timeout is undefined, proxy the reply-packet without change. 3. If the Session-Timeout is defined BUT the value is 0, set the value to be 36000 before sending it. Thanks a lot ... ----- Original Message ----- From: Liyan Tan <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 8:00 PM Subject: Re: How to insert an attribuite into a proxy-reply packet ? rlm_attr_filters may work? Liyan Tan [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 2003-11-13 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html