(RADIATOR) Expression to Add a realm to a username
Hugh Irvine
hugh at open.com.au
Mon Jan 13 19:42:44 CST 2003
Hello Kevin -
This should work fine as far as I can see.
Good thinking!
regards
Hugh
On Tuesday, Jan 14, 2003, at 12:04 Australia/Melbourne, Kevin McKee
wrote:
> I guess I was able to do the impossible. :) I wrote a
> RewriteUsername hook that adds a domainname only on users that don't
> already have a domain name.
>
> Let me know if this will break something in some odd way.
> Here's my handler:
>
> <Handler Called-Station-Id=/50979XXXXX|50976XXXXX|50979XXXXX/>
> #
> #
> #
> RewriteUsername s/^([^@]+)$/$1\@newdomain\.com/
> AcctLogFileName %L/%Y%m%d-newdomain-detail
> SessionDatabase newdomainDB
> RejectHasReason
> <AuthBy RADIUS>
> Host xx.xx.xx.xxx
> Secret xxxxxx
> AuthPort 1812
> AcctPort 1813
> LocalAddress xx.xx.xxx.xxx
> StripFromRequest NAS-Port-Id,NAS-Port-Type
> </AuthBy>
> </Handler>
>
> -----Original Message-----
> From: Hugh Irvine [mailto:hugh at open.com.au]
> Sent: Monday, December 30, 2002 1:06 PM
> To: Kevin McKee
> Cc: radiator at open.com.au
> Subject: Re: (RADIATOR) Expression to Add a realm to a username
>
>
>
> Hello Kevin -
>
> You will need to write a PreAuthHook for this Handler, as a simple
> RewriteUsername will not work.
>
> There are some example hooks in the file "goodies/hooks.txt" in the
> Radiator 3.5 distribution.
>
> regards
>
> Hugh
>
>
> On Tuesday, Dec 31, 2002, at 05:16 Australia/Melbourne, Kevin McKee
> wrote:
>
>> We are currently using Handlers to authenticate using
>> Called-Station-ID. One of our proxy customer is asking that we add a
>> default realm to all of his users that don't use a realm. If they
>> have a realm, then he would like that username passed along 'as-is'.
>>
>> This seems to be something that should be handled with a
>> RewriteUsername expression, but I'm having problems getting my brain
>> around that regular expression. Would anyone care to share the
>> expression that they have written to solve this problem?
>>
>> -Kevin McKee-
>> Northwest Telephone, Inc.
>>
>> ===
>> Archive at http://www.open.com.au/archives/radiator/
>> Announcements on radiator-announce at open.com.au
>> To unsubscribe, email 'majordomo at open.com.au' with
>> 'unsubscribe radiator' in the body of the message.
>>
>>
>
> --
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, extensible,
> flexible with hardware, software, platform and database independence.
>
>
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list