Skip to content

Commit

Permalink
Add not on why we return invalid if there are no cached groups
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 6, 2014
1 parent d1dcd3f commit d9ad7ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/rlm_ldap/groups.c
Expand Up @@ -717,6 +717,11 @@ rlm_rcode_t rlm_ldap_check_cached(ldap_instance_t const *inst, REQUEST *request,
vp_cursor_t cursor;

fr_cursor_init(&cursor, &request->config_items);

/*
* We return RLM_MODULE_INVALID here as an indication
* the caller should try a dynamic group lookup instead.
*/
vp = fr_cursor_next_by_num(&cursor, inst->cache_da->attr, inst->cache_da->vendor, TAG_ANY);
if (!vp) return RLM_MODULE_INVALID;
fr_cursor_first(&cursor);
Expand Down

0 comments on commit d9ad7ad

Please sign in to comment.