]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more unknown vendors
authorAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2017 23:04:11 +0000 (18:04 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2017 23:04:11 +0000 (18:04 -0500)
src/tests/keywords/update-xlat

index 59230dcc34bf14843eddd1483c31811bc0040be7..501f481eb305d5cd0c771106b798ebbd706cab31 100644 (file)
@@ -36,6 +36,24 @@ if (&Tmp-String-0 == 'hello') {
 
 #
 #  Try updating an attribute specified by an OID string
+#  for an unknown vendor
+#
+update {
+       Tmp-Integer-0 := 66
+}
+update {
+       "Vendor-%{Tmp-Integer-0}-Attr-1" := 0x01020304
+}
+
+if (&Vendor-66-Attr-1 != 0x01020304) {
+       update reply {
+               Filter-Id += 'Fail 1a'
+       }
+}
+
+#
+#  Try updating an attribute specified by an OID string
+#  for a known vendor
 #
 update {
        Tmp-Integer-0 := 11344
@@ -59,3 +77,4 @@ if (&Tmp-String-1 != 'hello2') {
                Filter-Id += 'Fail 3'
        }
 }
+