Semantics of !~ operator

Alan DeKok aland at deployingradius.com
Fri Apr 24 14:45:22 CEST 2015


On Apr 24, 2015, at 8:20 AM, Gerald Vogt <vogt at spamcop.net> wrote:
> Interesting. I am using FreeRADIUS 3.0.4 on CentOS 7 and it's still in
> the manual page. Should there be an error message if it doesn't work?
> And why is it working with =~ then?

  Accident.  It's been removed in later releases.

> I am using regexes a lot in my users file. What would be the indented
> way to do the same without regexes? I currently use regexes to check the
> realm if it is my own "Realm =~ example.com|NULL" and also to check for
> the SSID to which a user connects to on my wifi: e.g.,
> "Called-Station-Id =~ "[-A-Fa-f0-9]+:eduroam$" as the controller puts
> the MAC address of the access point before the SSID.
> 
> So how do I check that instead now without regexes in the users file?

 $ man unlang

  The "users" file contains *simple* policies.  Unlang can do policies of any complexity.

  Alan DeKok.




More information about the Freeradius-Users mailing list