]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
the RADIUS protocol cannot encode attributes of type 'group'
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Sep 2023 17:17:06 +0000 (13:17 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Sep 2023 17:17:06 +0000 (13:17 -0400)
src/protocols/radius/base.c

index 3bab0e39f1fd062ca9ed6c7d923584a20fcb14b2..d1534b31c6cb839a912219c59b3237cb9a28242e 100644 (file)
@@ -1145,6 +1145,14 @@ static bool attr_valid(UNUSED fr_dict_t *dict, fr_dict_attr_t const *parent,
                return true;
        }
 
+       /*
+        *      The RADIUS encoder does not handle groups.
+        */
+       if ((type == FR_TYPE_GROUP) && !flags->internal) {
+               fr_strerror_const("The RADIUS protocol cannot encode attributes of type 'group'");
+               return false;
+       }
+
        if (flag_extended(flags)) {
                if (type != FR_TYPE_TLV) {
                        fr_strerror_const("The 'long' or 'extended' flag can only be used for attributes of type 'tlv'");