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 PROTECT
Hi,
I am currently using this
RewriteUsername s/^([EMAIL PROTECTED]).*/$1/
Can anyone help me to so it strips leading blanks?
Tx,
Herman
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radia
Hello Jeremy -
Depending on the rest of your configuration file, you could use
Handlers like this:
# define Handlers
# do accounting
RewriteUsername .
AcctResult ACCEPT
AcctLogFileName ...
# do authentication
Greetings all,
I'm having a bit of a puzzle i cant seem to figure out. I am using an
AuthBy LDAP2 clause to auth with an LDAP server. The LDAP
schema is built as uid=,cn=. Since most of my users log in
w/out specifying a realm, i have a DefaultRealm specified in my Client
clause. This
april 2002 3:45
> To: [EMAIL PROTECTED]
> Subject: (RADIATOR) Rewriteusername Regular Expression Newbie
>
>
> 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 suf
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
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 I simply add two RewriteUsername lines at the very
beginning of my Radius.cfg before any AuthBy or Realm clauses such as:
RewriteUser
-
From:
Barry
Andersson
To: [EMAIL PROTECTED]
Sent: Thursday, 28 February, 2002
19:36
Subject: (RADIATOR) RewriteUsername
Hi,
I have RewriteUsername s/^([^@]+).*/$1/ in my
radius.cfg file however domains don't appear to be stripped from users who
inadvert
Hello Barry -
The way your configuration file is set up, you will only get usernames of the
form "user@auth" in the clause. If the username is of the form
[EMAIL PROTECTED], it will not go to the clause, hence will
not get rewritten. The other clause will only match usernames without
real
Hi,
I have RewriteUsername s/^([^@]+).*/$1/ in my
radius.cfg file however domains don't appear to be stripped from users who
inadvertently login with their email address. I'm getting errors in the logfile
such as "Could not find a handler for username@domainname: request is
ignored"
Bel
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-
> Ha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I would like to put my RewriteUsername Rule into the clients table of
my MySQL database. Should I put the whole statement like this:
RewriteUsername s/^([^@]+).*/$1/
into the database, or just the reg
-Name that was received, before any RewriteUsername
were applied.
-Original Message-
From: Jeffrey Wheat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 4:01 PM
To: [EMAIL PROTECTED]
Subject: (RADIATOR) RewriteUsername help
Hello all!
I have a special need for stripping the
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:
>
Hello all!
I have a special need for stripping the domain name from my
proxy customers prior to authenication but need the domain
to be included when writing the accounting records to a file
and to the sql database. Any suggestions?
MTIA,
Jeff
===
Archive at http://www.starport.net/~radiator/
PROTECTED]]
>> Sent: Friday, January 01, 1904 5:31 AM
>> To: Kitabjian, Dave; '[EMAIL PROTECTED]'
>> Cc: Wild, Andrew
>> Subject: Re: (RADIATOR) RewriteUsername in ?
>>
>>
>>
>> Hello Dave -
>>
>> The way to do this is wi
ED]]
> Sent: Friday, January 01, 1904 5:31 AM
> To: Kitabjian, Dave; '[EMAIL PROTECTED]'
> Cc: Wild, Andrew
> Subject: Re: (RADIATOR) RewriteUsername in ?
>
>
>
> Hello Dave -
>
> The way to do this is with AuthBy GROUP(s):
>
...
>
> Hugh
>
>
Hello Dave -
The way to do this is with AuthBy GROUP(s):
# configure AuthBy clause
Identifier CheckLDAP
.
# configure AuthBy GROUP
Identifier CheckUsers
RewriteUsername
AuthBy CheckLDAP
# configure Realms or Handlers
AuthBy CheckUser
Subject says it all.
The docs say you can specify RewriteUsername Globally, in Client clauses,
and in Realms. (It might be worth mentioning that it appears to work in
non-realm Handlers, too.)
But anyway...
I'm wondering if it can work in clauses?
The reason we'd like that is as follows. We
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", "-", "_", "@"
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 "(
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".
When radiator writes the accounting records to the SQL o
We would like IPASS roamers on our network to identify themselves as
[EMAIL PROTECTED]
when they log in which I believe is the UUNET standard, right?
I do know that rewriteusername clause is useful to do this but i'm a
little bit confused in the correct way that i can do it..
Anybody ha
Title: RewriteUsername
Hi,
How can I combine this three Rewrite parameters in one expression.
RewriteUsername s/'//g
RewriteUsername tr/-A-Za-z0-9\.\@//cd
RewriteUsername s/^([^@]+).*/$1/
Best regards,
Emin TAHRALI
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
> clause. I have this working correctly where it puts
> &qu
On Tue, Jun 08, 1999 at 07:37:36PM -0700, [EMAIL PROTECTED] wrote:
> Another issue with adding realm names at the end of each
> username with the clause, multiple logins cannot be
> enforced between POPs since each POP has it's own realm name.
> If the same username logs attempts to login to
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
clause. I have this working correctly where it puts
"@host.2xtreme.net" on the end of any usename appearing from
that client. The problem I'm having now is that when this
Totally ignore my last message. I found the section in the manual.
Make fun of me if you wish, I deserve it! :)
..Rich
--
Richard W. Hawley - Network Engineer
CyberZone Internet Services
http://www.cyberzone.net
[EMAIL PROTECTED]
===
To unsubscribe, email
Will RewriteUsername work for a specific realm if I specify it within
the clause or do I have to use RewriteFunction? I have
four realms (three of which simply proxy to other radius servers). The
main realm has users who may or may not specify the realm in their PPP
dialer. I only want radiato
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
>
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 characters from the beginning, move them
to the end, separating with an @ sign. This way I can hand out u
31 matches
Mail list logo