Hello Amandio, Thanks for the answer. Then I guess the documentation should be changed since it has the following example:
# Convert all user@realm1 to user@realm2, then # change any user named mikem into fred RewriteUsername s/^([^@]+)@realm1/$1@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:vkyr...@forthnet.gr] > Enviada: 11 de janeiro de 2018 11:37 > Para: radiator@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@domain > > ERR: Error while rewriting username user@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 > > > > > > _______________________________________________ radiator mailing list radiator@lists.open.com.au http://lists.open.com.au/mailman/listinfo/radiator