<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="System">But, I want to use rlm_rewrite_attr or
rewrite_filter.<br>
Look at my comments below.<br>
<br>
Nicolas Baradakis wrote:</font>
<blockquote cite="mid20051103093617.GA17267@asuka.tech.sitadelle.com"
type="cite">
<pre wrap=""><font face="System">kevin wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="System">I want to get some idea about how to manipulate attributes before we
respond to NAS.
For example, before I send Access-Accept packet to the NAS, I want to
add two additional attributes (let's say S and T) to NAS-1 and add X, Y,
and Z to NAS-2. In short, I want to add some attributes differently
based on the NAS IP or Client IP. How can I do that?
</font></pre>
</blockquote>
<pre wrap=""><!----><font face="System">
In the "users" file:
DEFAULT NAS-IP-Address == 10.0.0.1
Attribute-S := Value-S,
Attribute-T := Value-T
DEFAULT NAS-IP-Address == 10.0.0.2
Attribute-X := Value-X,
Attribute-Y := Value-Y,
Attribute-Z := Value-Z
</font></pre>
</blockquote>
<font face="System">What I want to do is something like<br>
if (Calling-Station-ID == 5045551234) then add some filters to the
DEFAULT reply attributes.<br>
It seems that rewrite_filter cannot add some attributes to DEFAULT and
rewrite_attr cannot check any condition. Does anybody know how to do
it?<br>
<br>
Kevin<br>
<br>
<br>
</font>
</body>
</html>