Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
ce1a18d1
Commit
ce1a18d1
authored
Dec 12, 2010
by
Quanah Gibson-Mount
Browse files
More for ITS#6608
parent
1f94f45c
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/accesslog.c
View file @
ce1a18d1
...
...
@@ -1377,6 +1377,11 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
if
(
lo
->
mask
&
LOG_OP_WRITES
)
{
slap_callback
*
cb
;
/* These internal ops are not logged */
if
(
op
->
o_dont_replicate
&&
op
->
orm_no_opattrs
)
return
SLAP_CB_CONTINUE
;
ldap_pvt_thread_mutex_lock
(
&
li
->
li_log_mutex
);
old
=
li
->
li_old
;
li
->
li_old
=
NULL
;
...
...
@@ -1758,6 +1763,10 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
slap_overinst
*
on
=
(
slap_overinst
*
)
op
->
o_bd
->
bd_info
;
log_info
*
li
=
on
->
on_bi
.
bi_private
;
/* These internal ops are not logged */
if
(
op
->
o_dont_replicate
&&
op
->
orm_no_opattrs
)
return
SLAP_CB_CONTINUE
;
if
(
li
->
li_ops
&
LOG_OP_WRITES
)
{
slap_callback
*
cb
=
op
->
o_tmpalloc
(
sizeof
(
slap_callback
),
op
->
o_tmpmemctx
),
*
cb2
;
cb
->
sc_cleanup
=
accesslog_mod_cleanup
;
...
...
servers/slapd/overlays/ppolicy.c
View file @
ce1a18d1
...
...
@@ -1161,9 +1161,11 @@ locked:
c
.
ldctl_iscritical
=
1
;
c
.
ldctl_oid
=
LDAP_CONTROL_RELAX
;
}
else
{
/* If not forwarding, don't update opattrs */
if
(
SLAP_SINGLE_SHADOW
(
op
->
o_bd
))
/* If not forwarding, don't update opattrs
and don't replicate
*/
if
(
SLAP_SINGLE_SHADOW
(
op
->
o_bd
))
{
op2
.
orm_no_opattrs
=
1
;
op2
.
o_dont_replicate
=
1
;
}
op2
.
o_bd
->
bd_info
=
(
BackendInfo
*
)
on
->
on_info
;
}
rc
=
op2
.
o_bd
->
be_modify
(
&
op2
,
&
r2
);
...
...
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