(RADIATOR) Original username
Hugh Irvine
hugh at open.com.au
Wed Jul 25 16:56:43 CDT 2007
Ciao Fabio -
OK - here is some magic for you - please let me know if it works for
you.
Add this PreClientHook and these Handlers to your configuration file:
.....
PreClientHook file:"%D/addOriginalUserName"
.......
<Handler Client-Identifier=/NEW_CI/, Original-User-Name=/milan.it/>
...
</Handler>
<Handler Client-Identifier=/NEW_CI/,Original-User-Name=/rome.it/>
...
</Handler>
.....
Here is the code for the hook:
# -*- mode: Perl -*-
# addOriginalUserName
#
# PreClientHook to add Original-User-Name attribute
#
# Author: Hugh Irvine (hugh at open.com.au)
# Copyright (C) 2007 Open System Consultants
#
sub
{
my $p = ${$_[0]};
my $name;
if ($name = $p->{OriginalUserName})
{
&main::log($main::LOG_DEBUG,
"Original-User-Name = $name");
$p->change_attr('Original-User-Name', $name);
}
return;
}
hope that helps
regards
Hugh
On 25 Jul 2007, at 21:05, Fabio Prina wrote:
> On Wed, 25 Jul 2007 09:09:27 +1000
> Hugh Irvine <hugh at open.com.au> wrote:
>
>> Hello Fabio -
>>
>> I suggest you remove the global RewriteUsernames, and put whichever
>> ones are required in the corresponding Handler(s).
>>
>> Something lile this:
> [ ... ]
>>
>> hope that helps
>
> Hi Hugh,
>
> I'm totally agree with your solution but I need only temp patch and in
> this moment for "political reason" less I change in the conf and
> better
> is
>
> In the next future I'll can rewrite all the configuration ... I'm
> waiting that time :)
>
>
> thanks
> --
> Fabio
>
> --
> 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.
NB:
Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
Have you checked the RadiusExpert wiki:
http://www.open.com.au/wiki/index.php/Main_Page
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.
--
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