Hi Chris,

On Jun 25,  1:18pm, Chris M wrote:
> Subject: Re: (RADIATOR) Re: Suffix Removal?
> At 01:42 PM 5/11/99 -0500, you wrote:
> >Hi Enrique.
> >
> >On May 10,  9:43pm, Enrique Vadillo wrote:
> >> Subject: Suffix Removal?
> >> Hi all,
> >>
> >> I would like to remove a suffix from a username, the thing is i want to
> >> strip the trailing domain right after the '@' sign in my handle:
> >>
> >> <Handler User-Name=/\@somedomain//>
> >>         RewriteUsername s/?????/?????/
> >>         <AuthBy RADIUS>
> >>                 Host x.x.x.x
> >>                 Secret ****
> >>         </AuthBy>
> >> </Handler>
> >>
> >> how can i do that? any ideas?
> >This will strip the @ and the suffix:
> >
> >RewriteUsername      s/^([^@]+).*/$1/
>
> How about stripping leading and trailing spaces?

# Strip leading white space
RewriteUsername s/^\s+//
# Strip trailin white space
RewriteUsername s/\s+$//

Cheers.

-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to