Skip to content

Commit

Permalink
Make cached group checks work when the user is the member of a single…
Browse files Browse the repository at this point in the history
… group
  • Loading branch information
arr2036 committed Nov 6, 2014
1 parent cdf0f17 commit d1dcd3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/rlm_ldap/groups.c
Expand Up @@ -719,6 +719,7 @@ rlm_rcode_t rlm_ldap_check_cached(ldap_instance_t const *inst, REQUEST *request,
fr_cursor_init(&cursor, &request->config_items);
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);

while ((vp = fr_cursor_next_by_num(&cursor, inst->cache_da->attr, inst->cache_da->vendor, TAG_ANY))) {
ret = paircmp_op(T_OP_CMP_EQ, vp, check);
Expand Down

0 comments on commit d1dcd3f

Please sign in to comment.