(RADIATOR) RE: RewriteUsername

Kon Georgopoulos (Alphawest) Kon.Georgopoulos at optus.com.au
Tue Dec 4 15:58:41 CST 2007


Sorry for another email:
 
The: 
 
RewriteUsername s/^(.*)\@(.*)\@(.*)/$1\@$3/ works user1 at realm2@realm1 successfully rewriting as user1 at realm1
 
however the RewriteUsername s/^(.*)\@(.*)\@(.*)\@(.*)/$1\@$4/ rewrites user1 at realm2@realm3 at realm1 as user1 at realms2@realm1 
 
I thought the @$4 places the fourth .* after the $1 (users1) ???
 
Kon.
 
________________________________

From: owner-radiator at open.com.au on behalf of Kon Georgopoulos (Alphawest)
Sent: Wed 05/12/2007 7:38 AM
To: radiator at open.com.au; hugh at open.com.au
Subject: (RADIATOR) RE: RewriteUsername


Ok, I gave it a go.
 
RewriteUsername s/^(.*)\@(.*)\@(.*)/$1\@$3/
(this should match any user1 at realm2@realm1 and rewrite as user1 at realm1)
 
Also taking it the exteme:

RewriteUsername s/^(.*)\@(.*)\@(.*)\@(.*)/$1\@$4/
(this should match any user1 at realm2@realm3 at realm1 and rewrite as user1 at realm1)
 
Any comments?
 
Kon.
 
________________________________

From: Kon Georgopoulos (Alphawest)
Sent: Wed 05/12/2007 7:34 AM
To: radiator at open.com.au; hugh at open.com.au
Subject: RewriteUsername


We have an issue wherer users can type in for example user1 at realm2@realm1 and be allowed to authenicated into the realm1 with the user1 from realm2's account.
 
Would the best approach to this be to make use of RewriteUsername to correcltty format? I could strip out the first name before the first @ and user the realm after the last @.
 
So are there any regular expression GURUs?
 
Kon,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20071205/3ddb03cd/attachment.html>


More information about the radiator mailing list