Semantics of !~ operator

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Tue Apr 28 09:51:32 CEST 2015


Hi,

> ssid {
>         if ( Called-Station-Id ) {
>                 if ( Called-Station-Id =~ /^[-A-Fa-f0-9]+:(.*)$/ ) {
>                         update {
>                                 Local-SSID = "%{1}"
>                         }
>                 }
>         }
> }

okay, so you've got unlang and policies sorted :-)

> 4. and now I can use the attribute Local-SSID with simple == and !=
> operators in the users file, e.g.

why? just do that using unlang too in the relevant virtual server. the old
'flat file' methods can be left almost as distributed (using them can be much
much slower than unlang...)

alan


More information about the Freeradius-Users mailing list