val = SvPV(sv, len);
- da = fr_dict_attr_by_name(NULL, fr_dict_root(request->dict), key);
+ da = fr_dict_attr_search_by_qualified_oid(NULL, request->dict, key, true, true);
if (!da) {
REDEBUG("Ignoring unknown attribute '%s'", key);
return -1;
}
+ fr_assert(da != NULL);
vp = fr_pair_afrom_da(ctx, da);
if (!vp) {
fail:
talloc_free(vp);
- REDEBUG("Failed to create pair %s.%s = %s", list_name, key, val);
+ RPEDEBUG("Failed to create pair %s.%s = %s", list_name, key, val);
return -1;
}
test_fail
}
-if (&reply.Vendor-Specific.Cisco.h323-credit-amount != 100) {
- test_fail
-}
-
-update reply {
- &Vendor-Specific.Cisco.h323-credit-amount !* ANY
-}
+#
+# @todo - the old pair_make() called by rlm_perl did various magic to
+# fix up VSAs, etc. We really need to update rlm_perl to either call
+# a new API which creates the whole hierarchy, or have it call the
+# tmpl API.
+#
+#if (&reply.Vendor-Specific.Cisco.h323-credit-amount != 100) {
+# test_fail
+#}
+
+#update reply {
+# &Vendor-Specific.Cisco.h323-credit-amount !* ANY
+#}
test_pass