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
openldap
OpenLDAP
Commits
3cafd7b1
Commit
3cafd7b1
authored
Dec 20, 2008
by
Pierangelo Masarati
Browse files
honor RFC4528 assertion control for LDAP add operations (ITS
#5861
; blind fix)
parent
e0ad0fbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-sql/add.c
View file @
3cafd7b1
...
...
@@ -975,6 +975,17 @@ backsql_add( Operation *op, SlapReply *rs )
slap_add_opattrs
(
op
,
&
rs
->
sr_text
,
textbuf
,
textlen
,
1
);
if
(
get_assert
(
op
)
&&
(
test_filter
(
op
,
op
->
ora_e
,
get_assertion
(
op
))
!=
LDAP_COMPARE_TRUE
))
{
Debug
(
LDAP_DEBUG_TRACE
,
" backsql_add(
\"
%s
\"
): "
"assertion control failed -- aborting
\n
"
,
op
->
ora_e
->
e_name
.
bv_val
,
0
,
0
);
e
=
NULL
;
rs
->
sr_err
=
LDAP_ASSERTION_FAILED
;
goto
done
;
}
/* search structuralObjectClass */
for
(
at
=
op
->
ora_e
->
e_attrs
;
at
!=
NULL
;
at
=
at
->
a_next
)
{
if
(
at
->
a_desc
==
slap_schema
.
si_ad_structuralObjectClass
)
{
...
...
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