(RADIATOR) Formatting MAC address

Hugh Irvine hugh at open.com.au
Fri May 28 05:24:47 CDT 2004


Hello Fred -

I think you will need to use a hook to reformat the MAC address before 
it gets to the AuthBy SQL clause.

You can use a global PreClientHook to deal with every request, or you 
can use a different PreHandlerHook in each Client clause.

There are some example hooks in the file "goodies/hooks.txt" in the 
Radiator 3.9 distribution.

regards

Hugh


On 28 May 2004, at 18:58, Fred Leeflang wrote:

> Hi,
>
> I'm logging accounting records to an SQL database.
> The problem is I'm getting accounting records from
> switches, ap's and I've built a utility that does some
> searching and all the formats somehow need to be
> synched.
>
> So, in some cases I get '0A-00-00...' formats, in other
> cases I get '0a0.000.....' formats but what I would like
> to have is:
>
> '0a0000000000' (all lower case, 12 characters)
>
> Is there some way to do this with the AcctColumnDef's
> 'format' field?
>
> Thanks,
> Fred Leeflang
>
> --
> 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 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.

--
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