(RADIATOR) Rewrite rules

Hugh Irvine hugh at open.com.au
Tue Apr 2 17:04:07 CST 2002


Hello Paul -

You should get a copy of the Camel book (Programming Perl from O'Reilly) and 
do some experiments with regular expressions to get a feel for them.

A RewriteUsername to strip spaces would look like this:

	RewriteUsername s/ //g

this one strips the "@some.realm" from a username

	RewriteUsername s/^([^@]+).*/$1/

so "user at some.realm" becomes "user".

regards

Hugh


On Tue, 2 Apr 2002 19:41, Paul Black wrote:
> I'm still trying to make my rewrite rules do exactly what I want.
> What rule would I need to string leading white space from the
> username?
>
> Also what does the first rule shown below do?
>
> Regards.  Paul
>
> >><Realm DEFAULT>
> >>  RewriteUsername s/^([^@]+).*/$1/
> >>  RewriteUsername tr/A-Z/a-z/
>
> ===
> 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.

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