[RADIATOR] Possible bug in RewriteUsername

Amândio Antunes Gomes Silva amandio at scom.uminho.pt
Fri Jan 12 12:31:12 UTC 2018


Hello, Vanggellis!

You're right: I went to see the documentation and saw that, too. Sorry for the bad tip.

Regards,

Amândio

-----Mensagem original-----
De: Vangelis Kyriakakis [mailto:vkyriak at forthnet.gr] 
Enviada: 12 de janeiro de 2018 09:32
Para: radiator at lists.open.com.au
Assunto: Re: [RADIATOR] Possible bug in RewriteUsername

Hello Amandio,

Thanks for the answer.
Then I guess the documentation should be changed since it has the
following example:

# Convert all user at realm1 to user at realm2, then
# change any user named mikem into fred
RewriteUsername s/^([^@]+)@realm1/$1 at realm2/
RewriteUsername s/^mikem@/fred@/
 
      Regards
          Vangelis

On 12/1/2018 11:16 πμ, Amândio Antunes Gomes Silva wrote:
> Happy new year to all of you too!
>
> Try escape the '@' sign (in perl, @word represents the array 'word'),
>
> Try something like:
>  
>
> RewriteUsername s/^(.*)\@domain$/$1/
>
>
> Hope this helps.
>
> Regards,
>
> Amândio
>
> -----Mensagem original-----
> De: Vangelis Kyriakakis [mailto:vkyriak at forthnet.gr] 
> Enviada: 11 de janeiro de 2018 11:37
> Para: radiator at lists.open.com.au
> Assunto: [RADIATOR] Possible bug in RewriteUsername
>
> Hello and happy new year,
>
> It seems that there is a problem with RewriteUsername function. When I try to rewrite something like @domain (@ next to a word) I get an error.
> Example:
>
> Using
>
> RewriteUsername s/^(.*)@domain$/$1/
>
> I get the following error while authenticating user at domain
>
> ERR: Error while rewriting username user at domain: Global symbol "@domain"
> requires explicit package name at (eval 172) line 1.
>
> If I use
>
> RewriteUsername s/^(.*)@[d]omain$/$1/
>
> the rewriting succeedes.
> The same happens for every word after the @.
>
> Is this a bug, or I'm missig something?
>
>         Regards
>              Vangelis
>
>
>
>
>
>




More information about the radiator mailing list