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
Tero Saarni
OpenLDAP
Commits
1ff7b8dc
Commit
1ff7b8dc
authored
Apr 20, 2011
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jun 08, 2011
Browse files
More for ITS#6815, Unbind and Abandon
parent
0c78bf13
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/accesslog.c
View file @
1ff7b8dc
...
...
@@ -1920,8 +1920,18 @@ accesslog_unbind( Operation *op, SlapReply *rs )
SlapReply
rs2
=
{
REP_RESULT
};
Entry
*
e
;
if
(
!
(
li
->
li_ops
&
LOG_OP_UNBIND
))
return
SLAP_CB_CONTINUE
;
if
(
!
(
li
->
li_ops
&
LOG_OP_UNBIND
))
{
log_base
*
lb
;
int
i
=
0
;
for
(
lb
=
li
->
li_bases
;
lb
;
lb
=
lb
->
lb_next
)
if
((
lb
->
lb_ops
&
LOG_OP_UNBIND
)
&&
dnIsSuffix
(
&
op
->
o_ndn
,
&
lb
->
lb_base
))
{
i
=
1
;
break
;
}
if
(
!
i
)
return
SLAP_CB_CONTINUE
;
}
e
=
accesslog_entry
(
op
,
rs
,
LOG_EN_UNBIND
,
&
op2
);
op2
.
o_hdr
=
op
->
o_hdr
;
...
...
@@ -1955,9 +1965,22 @@ accesslog_abandon( Operation *op, SlapReply *rs )
char
buf
[
64
];
struct
berval
bv
;
if
(
!
op
->
o_time
||
!
(
li
->
li_ops
&
LOG_OP_ABANDON
)
)
if
(
!
op
->
o_time
)
return
SLAP_CB_CONTINUE
;
if
(
!
(
li
->
li_ops
&
LOG_OP_ABANDON
))
{
log_base
*
lb
;
int
i
=
0
;
for
(
lb
=
li
->
li_bases
;
lb
;
lb
=
lb
->
lb_next
)
if
((
lb
->
lb_ops
&
LOG_OP_ABANDON
)
&&
dnIsSuffix
(
&
op
->
o_ndn
,
&
lb
->
lb_base
))
{
i
=
1
;
break
;
}
if
(
!
i
)
return
SLAP_CB_CONTINUE
;
}
e
=
accesslog_entry
(
op
,
rs
,
LOG_EN_ABANDON
,
&
op2
);
bv
.
bv_val
=
buf
;
bv
.
bv_len
=
snprintf
(
buf
,
sizeof
(
buf
),
"%d"
,
op
->
orn_msgid
);
...
...
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