(RADIATOR) Removing dashes from CallingStationID

Raymond Hughes raymond at CSL.WS
Mon Jul 19 20:54:31 CDT 2004


Thanks Hugh

In case anyone wants it

# config file line
PreClientHook file:"D:\\Radiator\alterCallingStationID.pl"

# alterCallingStationID.pl
sub
{
    my $p = ${$_[0]};
    my $call_station_id;       
    my $new_call_station_id;

    if ($call_station_id = $p->get_attr('Calling-Station-Id'))
    {
        #make local copy to preserve original
        $new_call_station_id = $call_station_id;                       
       
        #substitue - with nothing - strip them
        $new_call_station_id =~ s/-//g;                
       
        #log our new attribute value
        &main::log($main::LOG_DEBUG, "Calling-Station-Id =
$new_call_station_id");
       
        #store new attribute value
        $p->change_attr('Calling-Station-Id', $new_call_station_id);

    }
    return;
}


-----Original Message-----
From: Hugh Irvine [mailto:hugh at open.com.au]
Sent: Monday, 19 July 2004 1:21 PM
To: Raymond Hughes
Cc: radiator at open.com.au
Subject: Re: (RADIATOR) Removing dashes from CallingStationID


Hello Raymond -

You can do this with a PreClientHook - see the examples in
"goodies/hooks.txt".

regards

Hugh


On 20 Jul 2004, at 05:26, Raymond Hughes wrote:

> Hello List!
> 
> I am currently testing a Orinoco/Proxim AP2500 hotspot with Radiator
> to Platypus(MSSQL). I have found that the CallingStationID sent by the
> AP2500 includes dashes every 2 characters increasing  the field from
> 12 to 17 ie. 00-AB-CD-12-3E-2D. On my test system I increased the
> field size to cope but this is not an ideal first choice as the table
> on the production system is extremely large.
> 
> Therefore my question is, is it possible to remove the dashes with the
> rewrite function?
> 
> Thanks
> Raymond
> 
>

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
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.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20040719/8fe2cd32/attachment.html>


More information about the radiator mailing list