Re: (RADIATOR) Rewrite rules

2002-04-04 Thread Radiator Admin


This will remove begining & trailing whitespace

RewriteUsername s/^\s+// 
RewriteUsername s/\s+$//


- Original Message - 
From: "Paul Black" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 4:41 AM
Subject: (RADIATOR) Rewrite rules


> 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
> 
> >>
> >>  RewriteUsername s/^([^@]+).*/$1/
> >>  RewriteUsername tr/A-Z/a-z/
> 
> 
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
> 

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Rewrite rules

2002-04-02 Thread Hugh Irvine


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 "[EMAIL PROTECTED]" 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
>
> >>
> >>  RewriteUsername s/^([^@]+).*/$1/
> >>  RewriteUsername tr/A-Z/a-z/
>
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' 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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) Rewrite rules

2002-04-02 Thread Paul Black

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

>>
>>  RewriteUsername s/^([^@]+).*/$1/
>>  RewriteUsername tr/A-Z/a-z/


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Rewrite rules

1999-04-15 Thread Mike McCauley

On Apr 15,  5:39pm, Jamie Orzechowski wrote:
> Subject: (RADIATOR) Rewrite rules
> PROBLEM! ...
>
> I am using the rewrite rules
>
> RewriteUsername   s/^([^@]+).*/$1/
> RewriteUsername   tr/A-Z/a-z/
>
> it works fine and lets the user log in ... but i go and check my accounting
> radius server (another machine running livingston radius) and it has a START
> record for the user "MHz" which was supposed to be "mhz" ... so the rewrite
> rules let the user log in but did not correctly send his rewrote userid ...

The rewritten username is not communicated back to the NAS in any way, so the
NAS will send the orignal username to your accounting box.

> any ideas?  run radiator on the accounting machine also?
Yes, or tell your NAS to send accournting to the Radiator host.

Cheers.



-- 
Mike McCauley   [EMAIL PROTECTED]
Open System Consultants Pty. LtdUnix, 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, external, etc etc on Unix, Win95/8, NT, Rhapsody
===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) Rewrite rules

1999-04-15 Thread Jamie Orzechowski

PROBLEM! ...

I am using the rewrite rules

RewriteUsername   s/^([^@]+).*/$1/
RewriteUsername   tr/A-Z/a-z/

it works fine and lets the user log in ... but i go and check my accounting
radius server (another machine running livingston radius) and it has a START
record for the user "MHz" which was supposed to be "mhz" ... so the rewrite
rules let the user log in but did not correctly send his rewrote userid ...
any ideas?  run radiator on the accounting machine also?


- Original Message -
From: Stephen Roderick <[EMAIL PROTECTED]>
To: Jamie Orzechowski <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 1999 3:02 PM
Subject: Re: your mail


> On Thu, 15 Apr 1999, Jamie Orzechowski wrote:
>
> > Hi There ... I was wondering if anyone had a config for me that will
convert
> > all usernames to lowercase and also strip off anything after (and
including)
> > the @ symbol ... some people try and login with their [EMAIL PROTECTED]
which
> > will not work ... it will have to do the converting of the name before
it is
> > sent to the accounting server so that it will be accounted for properly
...
> > any ideas?
>
> RewriteUsername   s/^([^@]+).*/$1/
> RewriteUsername   tr/A-Z/a-z/
>
> Steve
>
>


===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.