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???

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

Reply via email to