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'
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
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
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo