Re: (RADIATOR) RewriteUsername - Strip leading blanks

2003-06-21 Thread Nicolai van der Smagt
On a linux machine at least, you can do 'man perlre'. Something like: s/^\s*([EMAIL PROTECTED]).*/$1/ Cheers, -- Nicolai van der Smagt [EMAIL PROTECTED] BBned NV On Sat, 2003-06-21 at 10:21, Herman verschooten wrote: Hi, I am currently using this RewriteUsername s/^([EMAIL

Re: (RADIATOR) RewriteUsername and logging

2002-09-28 Thread Hugh Irvine
Hello Jeremy - Depending on the rest of your configuration file, you could use Handlers like this: # define Handlers Handler Request-Type = Accounting-Request # do accounting RewriteUsername . AuthBy INTERNAL AcctResult ACCEPT /AuthBy

RE: (RADIATOR) Rewriteusername Regular Expression Newbie

2002-04-18 Thread Andy De Petter
Hi Barry, Obviously, you could also use: RewriteFunction sub { my ($a) = shift; $a =~ tr/A-Z/a-z/; $a =~ s/^([^@]+).*/$1/; $a; } Cheers, -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Barry Andersson Sent: donderdag 18 april 2002 3:45

Re: (RADIATOR) Rewriteusername Regular Expression Newbie

2002-04-17 Thread Hugh Irvine
Hello Barry - Yes - the two lines you show below will work. regards Hugh On Thu, 18 Apr 2002 11:44, Barry Andersson wrote: Hi, I'm afraid Perl regular expressions are a bit foreign to me. I want to force all usernames to lower case and strip any domain suffix that may be attached. Do

Re: (RADIATOR) RewriteUsername

2002-02-28 Thread Hugh Irvine
Hello Barry - The way your configuration file is set up, you will only get usernames of the form user@auth in the Realm auth clause. If the username is of the form [EMAIL PROTECTED], it will not go to the Realm auth clause, hence will not get rewritten. The other Realm clause will only match

Re: (RADIATOR) RewriteUsername

2002-02-28 Thread Ronan Eckelberry, Network/Systems Admin
Try naming the realm DEFAULT. It looks at anything after the @ to determine the realm name. So, if a customer logs in as [EMAIL PROTECTED], it is going to look for a realm called Realm abc.com. By default, if Radiator finds no matches, it will try to use Realm DEFAULT. -Ronan -

Re: (RADIATOR) RewriteUsername

2001-05-11 Thread Hugh Irvine
Hello Shon - You would just put the regexp into the relevant field in the database. RewriteUsername s/^([^@]+).*/$1 will indeed remove the @. realm suffix from a username. regards Hugh On Saturday 12 May 2001 03:27, Shon Stephens wrote: -BEGIN PGP SIGNED MESSAGE-

Re: (RADIATOR) RewriteUsername help

2001-04-17 Thread Hugh Irvine
Hello Jeff - You would use custom queries for the SQL database, and a format specification for the detail file - both using special characters: %n, %u and %N. Have a look at section 6.2 in the Radiator 2.18 reference manual. hth Hugh On Wednesday 18 April 2001 07:00, Jeffrey Wheat wrote:

RE: (RADIATOR) RewriteUsername help

2001-04-17 Thread Eric Lackey
Jeffrey, Here are some possible values you could use for that. You would probably want to use the %u which is the full username before any Rewrites are applied. So I think your AcctColumnDef for USERNAME would look like this AcctColumnDef USERNAME,%u

RE: (RADIATOR) RewriteUsername in AuthBy ?

2001-03-28 Thread Kitabjian, Dave
, January 01, 1904 5:31 AM To: Kitabjian, Dave; '[EMAIL PROTECTED]' Cc: Wild, Andrew Subject: Re: (RADIATOR) RewriteUsername in AuthBy ? Hello Dave - The way to do this is with AuthBy GROUP(s): ... Hugh At 16:56 -0500 01/3/27, Kitabjian, Dave wrote: Subject says it all

RE: (RADIATOR) RewriteUsername in AuthBy ?

2001-03-28 Thread Hugh Irvine
To: Kitabjian, Dave; '[EMAIL PROTECTED]' Cc: Wild, Andrew Subject: Re: (RADIATOR) RewriteUsername in AuthBy ? Hello Dave - The way to do this is with AuthBy GROUP(s): ... Hugh At 16:56 -0500 01/3/27, Kitabjian, Dave wrote: Subject says it all. The docs say you can specify

Re: (RADIATOR) RewriteUsername in AuthBy ?

2001-03-27 Thread Hugh Irvine
Hello Dave - The way to do this is with AuthBy GROUP(s): # configure AuthBy clause AuthBy LDAP Identifier CheckLDAP . /AuthBy # configure AuthBy GROUP AuthBy GROUP Identifier CheckUsers RewriteUsername AuthBy CheckLDAP /AuthBy # configure Realms

Re: (RADIATOR) RewriteUsername Simultaneous-Use problem

2000-07-20 Thread David Lloyd
On Thu, 20 Jul 2000, Nikos Aslanakis wrote: We have a problem regarding simultaneous logins. One of our users did the following: Logged in once using his normal username, eg. "user" ..and then logged in successfuly using the same username with additional trailing spaces: "user

IMPORTANT - Re: (RADIATOR) RewriteUsername Simultaneous-Use problem

2000-07-20 Thread Hugh Irvine
Hello Nikos - Several similar questions have come up recently, and my response has always been this: why not set up a Handler clause to catch the illegal usernames and reject them out of hand? The list in the Handler below will match on any character other than "a-z", "A-Z", "0-9", "-", "_",

Re: (RADIATOR) RewriteUserName help needed

1999-06-08 Thread Mike McCauley
On Jun 8, 7:37pm, [EMAIL PROTECTED] wrote: Subject: (RADIATOR) RewriteUserName help needed At the advice of Mike, I have started to put a realm name on the end of some of my usernames. This is being done in the Client clause. I have this working correctly where it puts "@host.2xtreme.net"

Re: (RADIATOR) RewriteUsername question

1999-03-24 Thread Mike McCauley
Hi Jason On Mar 24, 6:31pm, Jason J. Horton wrote: Subject: (RADIATOR) RewriteUsername question I am not very familiar with the way the RewriteUsername stuff works. What I would like to do is take a username like this: re010045 and turn it into this: 0045@re01 Basically take the first 4