char buffer[1024];
xlat_t *xlat;
+ /*
+ * Initialize the xlats before we load the configuration files, so that we can later call xlat_register().
+ */
+ xlat_init();
+
if (stat(config->raddb_dir, &statbuf) < 0) {
ERROR("Error checking raddb_dir \"%s\": %s", config->raddb_dir, fr_syserror(errno));
return -1;
match ERROR offset 11: Invalid array index '-1' (should be between 0-1000)
#
-# The attribute/xlat_purify parser does not fall back to bare words
+# attributes MUST be prefixed with '&'.
#
xlat_purify request.Foo == 'request.Foo'
-match ERROR offset 0: Failed resolving attribute in expansion: request.Foo
+match true
+
+xlat_purify &request.Foo == 'request.Foo'
+match ERROR offset 9: Attribute 'Foo' not found in namespace 'internal': Unresolved attributes are not allowed here
xlat_purify ¬-a-list.User-Name == ¬-a-list.User-Name
match ERROR offset 1: Attribute 'not' not found. Searched in: RADIUS, internal: Unresolved attributes are not allowed here
count
-match 314
+match 316