]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
"users" file doesn't use "&" for attribute names.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 18 May 2021 17:46:58 +0000 (13:46 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 18 May 2021 17:46:58 +0000 (13:46 -0400)
Which then lets us update map_afrom_substr() to look for rules
without "&", and then allow relative attribute references

src/lib/server/users_file.c

index 4a780c7bf7b3664f1658b59e8767e2e81b8faa2d..f7cb0a355f172b067e988843e7596875002faa99 100644 (file)
@@ -270,7 +270,7 @@ int pairlist_read(TALLOC_CTX *ctx, fr_dict_t const *dict, char const *file, PAIR
        lhs_rules = (tmpl_rules_t) {
                .dict_def = dict,
                .request_def = REQUEST_CURRENT,
-               .prefix = TMPL_ATTR_REF_PREFIX_AUTO,
+               .prefix = TMPL_ATTR_REF_PREFIX_NO,
                .disallow_qualifiers = true, /* for now, until more tests are made */
 
                /*