Lookup lists / arrays?

Phil Mayers p.mayers at imperial.ac.uk
Wed Nov 2 17:02:19 CET 2016


On 02/11/16 15:57, David Hartburn wrote:

>
> The file itself just contains the MAC address I am testing with:
> 42-42-42-42-42-42

Oh of course, that's even easier. "files" returns "ok" if it matches but 
not otherwise (IIRC). You can just do this:

postauth {
   eduroam_static_ip
   if (ok) {
     update reply ...
   }
}

No need to do foreach. I was thinking about the problem the wrong way round.


More information about the Freeradius-Users mailing list