]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Using "Attr-X" means that the RHS should be hex
authorAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2017 22:59:06 +0000 (17:59 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2017 22:59:43 +0000 (17:59 -0500)
and not ipaddr, or other data types

src/tests/keywords/unknown
src/tests/unit/condition.txt

index eb9659123ae4d55ac37b59c9783aaf03e5f97c98..739be6fb7d2341509e38d076d610bcd63b38ad5b 100644 (file)
@@ -56,7 +56,7 @@ if (&Vendor-11344-Attr-1 != 127.0.0.2) {
 }
 
 update request {
-       &Vendor-11344-Attr-1 := 127.0.0.1
+       &Vendor-11344-Attr-1 := 0x7f000001
 }
 
 if (&FreeRADIUS-Proxied-To == 127.0.0.2) {
index 5c9f405831faa6673d877ffe7404c565f0d81292..c0c095c4876e98d7941dbbb17713db7b22c06b74 100644 (file)
@@ -524,11 +524,11 @@ data &WiMAX-PFDv2-Src-Port == 6809
 
 #
 #  This OID is known, but the data is malformed.
-#  This is disallowed.  Fix the configuration so that
-#  it works.
+#  Allow it so that we can look for malformed attributes
+#  in packets.
 #
 condition &Attr-26.24757.84.9.5.7 == 0x1a99
-data ERROR offset 27 Failed to parse value for attribute
+data &Attr-26.24757.84.9.5.7 == 0x1a99
 
 #  This one is really unknown
 condition &Attr-26.24757.84.9.5.15 == 0x1a99
@@ -617,13 +617,13 @@ data false
 #
 #  'Unknown' attributes which are defined in the main dictionary
 #  should be resolved to their real names.
-condition &Attr-1 == 'bar'
-data &User-Name == 'bar'
+condition &Attr-1 == 0x616263
+data &User-Name == 'abc'
 
-condition &Vendor-11344-Attr-1 == 127.0.0.1
+condition &Vendor-11344-Attr-1 == 0x7f000001
 data &FreeRADIUS-Proxied-To == 127.0.0.1
 
-condition &FreeRADIUS-Attr-1 == 127.0.0.1
+condition &FreeRADIUS-Attr-1 == 0x7f000001
 data &FreeRADIUS-Proxied-To == 127.0.0.1
 
 #