From: Arran Cudbard-Bell Date: Thu, 6 Nov 2014 16:24:15 +0000 (-0500) Subject: Make cached group checks work when the user is the member of a single group X-Git-Tag: branch_3_1_x~4751 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80702ce8784e08b2b4f7db02dd564bb468f02011;p=thirdparty%2Ffreeradius-server.git Make cached group checks work when the user is the member of a single group --- diff --git a/src/modules/rlm_ldap/groups.c b/src/modules/rlm_ldap/groups.c index fdce1bfae54..4cc086be17e 100644 --- a/src/modules/rlm_ldap/groups.c +++ b/src/modules/rlm_ldap/groups.c @@ -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);