]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix name so it works
authorAlan T. DeKok <aland@freeradius.org>
Thu, 23 Aug 2012 14:11:44 +0000 (16:11 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 23 Aug 2012 14:11:44 +0000 (16:11 +0200)
raddb/modules/cache
src/modules/rlm_cache/rlm_cache.c

index edc82395734adaaa4f9968a1edec281ae896db3a..5e42a62604678ef0196c3eb4da72f219bfd51867 100644 (file)
@@ -51,9 +51,9 @@ cache {
        #  You can specify which list the attribute goes into by
        #  prefixing the attribute name with the list.  This allows
        #  you to update multiple lists with one configuration.
-       attributes {
+       update cache {
                # list:Attr-Name
-               reply:Filter-Id := "%l"
+               reply:Filter-Id += "%l"
 
                control:Class := 0x010203
        }
index ef24f61c75f4e5ab6425865c8632d8a53b207d2b..6a651bec33b593f6e68ad20b360d4b0884cd656e 100644 (file)
@@ -289,7 +289,7 @@ static rlm_cache_entry_t *cache_add(rlm_cache_t *inst, REQUEST *request,
 
 
 /*
- *     Verify that the "attributes" section makes sense.
+ *     Verify that the cache section makes sense.
  */
 static int cache_verify(rlm_cache_t *inst)
 {
@@ -432,7 +432,7 @@ static int cache_instantiate(CONF_SECTION *conf, void **instance)
                return -1;
        }
 
-       inst->cs = cf_section_sub_find(conf, "attributes");
+       inst->cs = cf_section_sub_find(conf, "update");
        if (!inst->cs) {
                radlog(L_ERR, "rlm_cache: Failed to find \"attributes\" subsection");
                cache_detach(inst);