From: Alan T. DeKok Date: Wed, 4 Jan 2017 22:14:45 +0000 (-0500) Subject: filter code in v4 works differently than v3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ff8a6fc0c370c936c5fffcd5c9e7302a46ceaa;p=thirdparty%2Ffreeradius-server.git filter code in v4 works differently than v3 --- diff --git a/src/tests/keywords/update-operator b/src/tests/keywords/update-operator deleted file mode 100644 index 31a2bdd0559..00000000000 --- a/src/tests/keywords/update-operator +++ /dev/null @@ -1,62 +0,0 @@ -# -# PRE: update -# -update request { - NAS-Port := 1000 -} - -# -# Filtering -# -update request { - NAS-Port == 1000 -} - -if (NAS-Port != 1000) { - update reply { - Filter-Id += "fail 1" - } -} - -update request { - NAS-Port <= 500 -} - -if (NAS-Port != 500) { - update reply { - Filter-Id += "fail 2" - } -} - -update request { - NAS-Port >= 2000 -} - -if (NAS-Port != 2000) { - update reply { - Filter-Id += "fail 3" - } -} - -# non-existent attribute -update request { - Class -= 0xabcdef -} - -update request { - Class -= &Class -} - -update request { - NAS-Port -= &NAS-Port -} - -if (!reply:Filter-Id) { - update control { - Cleartext-Password := 'hello' - } - - update reply { - Filter-Id := "filter" - } -}