if (attribute) required = true;
if (required) cant_be_empty = true; /* May want to review this in the future... */
+ /*
+ * Everything except templates must have a base type.
+ */
+ if (!(type & 0xff) && !tmpl) {
+ cf_log_err(&(cs->item), "Configuration item '%s' must have a data type", name);
+ return -1;
+ }
+
type &= 0xff; /* normal types are small */
+
rcode = 0;
cp = cf_pair_find(cs, name);
return 0;
}
- rad_assert(type == PW_TYPE_STRING); /* for now, fix it later */
rad_assert(!attribute);
rad_assert(!xlat);
vpt = tmpl_alloc(cs, TMPL_TYPE_LITERAL, value, strlen(value));