Normalizing MAC address for database storage?

Fajar A. Nugraha list at fajar.net
Mon Sep 28 09:38:15 CEST 2015


On Mon, Sep 28, 2015 at 2:23 PM, Kev Pearce <email.me at kevp.com> wrote:
>> Maybe even a more minimalistic format would be better for MAC address:
>> all lowercase, no separators: aabbccddeeff. A simple regex could
>> discard anything that's not 0123456789abcdef, and then convert to
>> lowercase.
>
> I'd do this but of course you need tolower first before the regex...

BEFORE regex? Not really. Just add "i".

http://wiki.freeradius.org/guide/mac-auth

-- 
Fajar


More information about the Freeradius-Users mailing list