On Wed, 26 Mar 2003, Carlos Alejandro Aguero wrote:
> Thanks for pointing out our mistake.-
> But perhaps I didn't make clear the problem.-
> The replacewith string correctly replaces the searchfor string leaving the
> rest of the username as it is, but we need to CHANGE it completely.-
>
> If User-Name = ###myusername, we need that the NEW string that you helped us
> to write goes in that place.-
>
> What we are getting is:
> User-Name = $$$%{Stripped-User-Name}$%{Acct-Unique-Session-Id}myusername
>
> We need myusername left out.-
> Is it possible???
Why don't you do searchfor = "^###.+$" or something like that?
>
> We though perhaps if we could clear first the User-Name and then write the
> new one.-
> But didn't figure how.-
> Aawiting and Best Regards
> Carlos
>
>
>
> ----- Mensaje original -----
> De: "Alan DeKok" <[EMAIL PROTECTED]>
> Para: <[EMAIL PROTECTED]>
> Enviado: Mi?rcoles 26 de Marzo de 2003 08:37
> Asunto: Re: Changing User-Name with attr_rewrite
>
>
> "Carlos Alejandro Aguero" <[EMAIL PROTECTED]> wrote:
> > "$$$"+%{Stripped-User-Name}+"$"+%{Acct-Unique-Session-Id}
>
> Hmm... nothing in the server documentation indicates that "+" is
> allowed to concatenate strings.
>
> Try:
>
> replacewith = "$$$%{Stripped-User-Name}$%{Acct-Unique-Session-Id}"
>
> Alan DeKok.
>
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED] National Technical University of Athens, Greece
Work Phone: +30 210 7721861
'Go back to the shadow' Gandalf
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html