Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
6b0fc9e0
Commit
6b0fc9e0
authored
Nov 03, 2020
by
Howard Chu
Browse files
ITS#9121 fix filtered memberOf
Broken in
2c0499ae
adding nesting
parent
bfeaec66
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/dynlist.c
View file @
6b0fc9e0
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment