Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
9a45db82
Commit
9a45db82
authored
May 06, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
May 11, 2021
Browse files
ITS#6467 Handle syncrepl searches with base of ""
parent
eaa446f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/syncprov.c
View file @
9a45db82
...
...
@@ -2256,6 +2256,11 @@ syncprov_play_accesslog( Operation *op, SlapReply *rs, sync_control *srs,
}
filter_escape_value_x
(
&
op
->
o_req_ndn
,
&
basedn
,
fop
.
o_tmpmemctx
);
/* filter_escape_value_x sets output to BVNULL if input value is empty,
* supply our own copy */
if
(
BER_BVISEMPTY
(
&
basedn
)
)
{
basedn
.
bv_val
=
""
;
}
fop
.
o_req_ndn
=
fop
.
o_req_dn
=
si
->
si_logbase
;
fop
.
ors_filterstr
.
bv_val
=
fop
.
o_tmpalloc
(
filterpattern
.
bv_len
+
...
...
@@ -2268,9 +2273,12 @@ syncprov_play_accesslog( Operation *op, SlapReply *rs, sync_control *srs,
"prepared filter '%s', base='%s'
\n
"
,
op
->
o_log_prefix
,
fop
.
ors_filterstr
.
bv_val
,
si
->
si_logbase
.
bv_val
);
f
=
str2filter_x
(
&
fop
,
fop
.
ors_filterstr
.
bv_val
);
assert
(
f
!=
NULL
);
fop
.
ors_filter
=
f
;
fop
.
o_tmpfree
(
basedn
.
bv_val
,
fop
.
o_tmpmemctx
);
if
(
!
BER_BVISEMPTY
(
&
basedn
)
)
{
fop
.
o_tmpfree
(
basedn
.
bv_val
,
fop
.
o_tmpmemctx
);
}
be_entry_release_rw
(
&
fop
,
e
,
0
);
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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