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 this in Section 14 of the Radiator 2.14.1 reference
manual, but you probably what to do something like this:
# Rewrite username from DOMAIN\user to user@DOMAIN
RewriteUsername s/^(.*)\\(.*)/$2\@$1/
# Rewrite username from user@DOMAIN to user
RewriteUsername s/^([^@]+).*/$1/
Doing the rewites in this order also means that you can do the first one in a
Client clause for example (if it makes sense for a later realm or handler). Then
once you are in the corresponding realm or handler you can use the second
rewrite to strip the realm in all cases.
hth
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.