mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 03:44:58 -05:00
parent
bfeaec664f
commit
6b0fc9e034
1 changed files with 6 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue