From: Alan T. DeKok Date: Thu, 29 Oct 2020 12:56:35 +0000 (-0400) Subject: We cannot assign hex strings to attributes of type "vsa" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca092705e1fcbe0dcba2ecba24606e7612b907f2;p=thirdparty%2Ffreeradius-server.git We cannot assign hex strings to attributes of type "vsa" Fix the test so that it has the correct error message --- diff --git a/src/tests/unit/protocols/radius/vendor.txt b/src/tests/unit/protocols/radius/vendor.txt index 488f3e956a3..a2b8c7605f6 100644 --- a/src/tests/unit/protocols/radius/vendor.txt +++ b/src/tests/unit/protocols/radius/vendor.txt @@ -31,8 +31,11 @@ match 3Com-User-Access-Level = 3Com-Visitor, 3Com-Ip-Host-Addr = "155.4.12.100 0 decode-pair 1a 2c 00 00 00 2b 01 06 00 00 00 00 3c 20 31 35 35 2e 34 2e 31 32 2e 31 30 30 20 30 30 3a 30 30 3a 30 30 3a 30 30 3a 30 30 3a 30 30 match 3Com-User-Access-Level = 3Com-Visitor, 3Com-Ip-Host-Addr = "155.4.12.100 00:00:00:00:00:00" +# +# Vendor-Specific is of type "vsa", and therefore cannot be assigned values. +# encode-pair Vendor-Specific = 0xabcdef -match Must use 'Attr-26 = ...' instead of 'Vendor-Specific = ...' +match Attributes of type 'vsa' are not yet supported encode-pair Attr-26 = 0x00000009abcdef match 1a 09 00 00 00 09 ab cd ef