(RADIATOR) How to change user at domain.com.au to user at dom
Hugh Irvine
hugh at open.com.au
Sun Oct 20 00:59:18 CDT 2002
Hello Matthew -
Depending on what else you are doing in your configuration file, you
might consider using Realms or Handlers to split up the processing.
# define Realms
<Realm cyberdomain.net.au>
RewriteUsername s/\@cyberdomain.net.au$/\@cyber/
.....
</Realm>
<Realm domain.com.au>
RewriteUsername s/^([^@]+).*/$1/
....
</Realm>
......
or use Handlers
# define Handles
<Handler Realm = cyberdomain.net.au>
RewriteUsername s/\@cyberdomain.net.au$/\@cyber/
.....
</Handler>
<Handler Realm= domain.com.au>
RewriteUsername s/^([^@]+).*/$1/
....
</Handler>
......
regards
Hugh
On Sunday, October 20, 2002, at 11:15 AM, mhobbs wrote:
> Hi
>
> Can I use a "RewriteUsername" to change
> user at cyberdomain.net.au to user at cbyer
>
> I currently using RewriteUsername s/^([^@]+).*/$1/
> to change from user at domain.com.au to just user
> for those dial-up customers who use there email address to log instead
> of
> they username
>
> But I'll need to change this or add an other Rewrite to do the above
> What perl expression do I need to use ?
>
> Also then can I change the rule RewriteUsername s/^([^@]+).*/$1/ to
> only
> strip
> user at a-certain-domain.com.au to user ? but not change
> user at domain.com.au any
> more
>
> Hope that make sense.
> The purpose is that I have a new database of customers who are logging
> as
> user at cyberdomain.com.au but they are in the database as user at cyber
>
>
> Thanks for any help
> Matthew Hobbs
> Speedlink
>
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
>
>
NB: I am travelling this week, so there may be delays in our
correspondence.
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list