Semantics of !~ operator

Gerald Vogt vogt at spamcop.net
Tue Apr 28 10:19:12 CEST 2015


On 28/04/15 09:51, A.L.M.Buxey at lboro.ac.uk wrote:
>> 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...)

It's a migration from CentOS 6 to CentOS 7. Thus, currently I still have 
the users aka authorize file. I have already cleaned up the default 
server and got rid of the files module there by putting the few relevant 
checks into unlang...

Gerald


More information about the Freeradius-Users mailing list