Re: (RADIATOR) Rewriting Usernames on the Fly

2001-10-23 Thread Hugh Irvine
Hello Martin - Why don't you just use two AuthBy SQL clauses with different AuthSelect statements? # define AuthBy SQL statements AuthBy SQL Identifier CheckNewUserName . AuthSelect select password from \ serviceuser where id_user = '%n'

(RADIATOR) Rewriting Usernames on the Fly

2001-10-22 Thread Martin Edge
Hey, I'm having a few issues working with hooks within Radiator. I'm trying to use a PreProcessing Hook, to modify the username of a user as they come in. It appears to grab the right data, but when I change the attribute, it doesn't appear to affect the username that is used to process. Is

(RADIATOR) Rewriting usernames - adding text to a username

2000-10-23 Thread Delanet Administration
I'm trying to rewrite a username such that a predefined portion of text is added before authentication takes place. The text will most likely be one word preceded by a hyphen "-delanet" for instance. Main reason is that due to a large number of acquisitions of other ISP and hosting companies, we

(RADIATOR) Rewriting usernames and what gets logged with AcctLogFileName

2000-02-29 Thread Andrew Pollock
Hi, I'd like to have my cake and eat it too, if possible. I'd like to be able to strip off the realm in an Access-Request before proxying it to another RADIUS server, and I'd like to log the accounting records locally (and not proxy them) but leave the realm information intact. Is this

Re: (RADIATOR) Rewriting usernames

1999-11-28 Thread Hugh Irvine
Hello Ray - On Sat, 27 Nov 1999, Ray Carpenter wrote: Hi all, I wanted to strip our domain name from the username so I added the following in the config file: RewriteUsername s/^([^@]+).*/$1/ This works fine for authentication. Is there a way to do this for accounting records and

(RADIATOR) Rewriting usernames

1999-11-27 Thread Ray Carpenter
Hi all, I wanted to strip our domain name from the username so I added the following in the config file: RewriteUsername s/^([^@]+).*/$1/ This works fine for authentication. Is there a way to do this for accounting records and radonline table? Regards, Ray Carpenter === Archive at

Re: (RADIATOR) rewriting usernames

1999-11-01 Thread Stuart Henderson
You certainly want to cut down on the number of rewrite statements. For example, the first two you list could be done with one regex... "s/^\s*(.*)\s*$/$1/". On the other hand, I'd first make sure that you need to do that anyway; I've never seen leading and trailing spaces coming in on the

Re: (RADIATOR) rewriting usernames

1999-11-01 Thread David Lloyd
On Sun, 31 Oct 1999, Chris M wrote: I have figured out most of what I want to do in this regard. But... I'd like to strip leading characters including \ for users that are using NT Domains and don't understand what they are doing on dialup :) So WORKGROUP\myname should be rewritten to

(RADIATOR) rewriting usernames

1999-10-31 Thread Chris M
I have figured out most of what I want to do in this regard. But... I'd like to strip leading characters including \ for users that are using NT Domains and don't understand what they are doing on dialup :) So WORKGROUP\myname should be rewritten to myname. I bought the RegEx book from

Re: (RADIATOR) rewriting usernames

1999-10-31 Thread Neale Banks
On Sun, 31 Oct 1999, Chris M wrote: [...] Here is what I have so far, this might be helpful to others also: Realm mydomain.com # Strip leading white space RewriteUsername s/^\s+// # Strip trailing white space RewriteUsername s/\s+$// # turn

Re: (RADIATOR) rewriting usernames

1999-10-31 Thread Chris M
On Sun, 31 Oct 1999, Chris M wrote: I'd like to strip leading characters including \ for users that are using NT Domains and don't understand what they are doing on dialup :) So WORKGROUP\myname should be rewritten to myname. Off the top of my head RewriteUsername

Re: (RADIATOR) rewriting usernames

1999-10-31 Thread Hugh Irvine
Hello Chris - On Mon, 01 Nov 1999, Chris M wrote: I have figured out most of what I want to do in this regard. But... I'd like to strip leading characters including \ for users that are using NT Domains and don't understand what they are doing on dialup :) There are examples for

Re: (RADIATOR) rewriting usernames

1999-10-31 Thread Lon R. Stockton, Jr.
On Sun, 31 Oct 1999, Chris M wrote: Remember that Regex matching in general (and RewriteUsername in specific) is sloooww. That depends on the machine that they are running on :) Well, slow is indeed a relative term. (: It definitely happens, lowers our tech support calls by about

Re: (RADIATOR) rewriting usernames

1999-10-31 Thread Lon R. Stockton, Jr.
On Mon, 1 Nov 1999, David S. Madole wrote: To answer the original request, the following will strip any "xxx\" prefix, any "@xxx" suffix, and any leading or trailing spaces: # make life easier for our customers RewriteUsername s/^.*\\|@.*$|^\s+|\s+$//g This is a gem, much