Commit 6b0fc9e0 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9121 fix filtered memberOf

Broken in 2c0499ae adding nesting
parent bfeaec66
......@@ -1699,16 +1699,19 @@ dynlist_search( Operation *op, SlapReply *rs )
if ( dlm->dlm_memberOf_ad ) {
int want = 0;
/* with nesting, filter attributes also require nestlink */
if ( dlm->dlm_memberOf_nested ) {
/* is attribute in filter? */
if ( ad_infilter( dlm->dlm_memberOf_ad, op->ors_filter )) {
want |= WANT_MEMBEROF;
/* with nesting, filter attributes also require nestlink */
if ( dlm->dlm_memberOf_nested ) {
/* WANT_ flags have inverted meaning here:
* to satisfy (memberOf=) filter, we need to also
* find all subordinate groups. No special
* treatment is needed for (member=) since we
* already search all group entries.
*/
if ( ad_infilter( dlm->dlm_memberOf_ad, op->ors_filter ))
want |= WANT_MEMBER;
}
}
/* if attribute is not requested, skip it */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment