]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add test for known vendor and unknown attribute
authorAlan T. DeKok <aland@freeradius.org>
Mon, 25 Nov 2024 20:10:09 +0000 (15:10 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 25 Nov 2024 21:37:21 +0000 (16:37 -0500)
src/tests/unit/protocols/radius/vendor.txt

index f6999bfde1cd4fd0c84996f5bba9e36cafa1cee2..0f306914e7e55ced61ede97654e5095c00cc6eba 100644 (file)
@@ -153,5 +153,15 @@ match f1 0b 1a 00 00 19 7f 26 ab cd ef
 decode-pair -
 match Extended-Attribute-1 = { Extended-Vendor-Specific-1 = { Nokia-SR = { raw.38 = 0xabcdef } } }
 
+#
+#  Known vendor, unknown attribute.  Microsoft will never add more RADIUS attributes to
+#  their dictionary, so we use that here.
+#
+encode-pair Vendor-Specific = { Microsoft = { raw.200 = 0xabcdef } }
+match 1a 0b 00 00 01 37 c8 05 ab cd ef
+
+decode-pair -
+match  Vendor-Specific = { Microsoft = { raw.200 = 0xabcdef } }
+
 count
-match 74
+match 78