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
1de6a92c
Commit
1de6a92c
authored
Nov 25, 2006
by
Kurt Zeilenga
Browse files
backport slap_add_opattrs() error checking
parent
e778611d
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
1de6a92c
...
...
@@ -3,6 +3,7 @@ OpenLDAP 2.3 Change Log
OpenLDAP 2.3.31 Engineering
Fixed slapd group ACL caching when proxyAuthz'ing (ITS#4760)
Fixed slapd "group" authz default member parsing (ITS#4761)
Fixed slapd-bdb/hdb/ldbm slap_add_opattrs error checking
Documentation
Fixed typo in slapo-retcode(5) man page (ITS#4753)
...
...
@@ -19,7 +20,7 @@ OpenLDAP 2.3.29 Release
Fixed libldap string length assert (ITS#4740)
Fixed liblunicode case mapping (ITS#4724)
Fixed slapd ldapi:// socket permissions (ITS#4709)
Fixed slapd c_writewaiters assert (ITS#4696,
#
4736)
Fixed slapd c_writewaiters assert (ITS#4696,4736)
Fixed slapo-accesslog purge contextCSN bug (ITS#4704)
Fixed slapo-accesslog modify/replace bug (ITS#4728)
Fixed slapo-dynlist leaks (ITS#4664)
...
...
servers/slapd/back-bdb/add.c
View file @
1de6a92c
...
...
@@ -51,7 +51,13 @@ bdb_add(Operation *op, SlapReply *rs )
/* add opattrs to shadow as well, only missing attrs will actually
* be added; helps compatibility with older OL versions */
slap_add_opattrs
(
op
,
&
rs
->
sr_text
,
textbuf
,
textlen
,
1
);
rs
->
sr_err
=
slap_add_opattrs
(
op
,
&
rs
->
sr_text
,
textbuf
,
textlen
,
1
);
if
(
rs
->
sr_err
!=
LDAP_SUCCESS
)
{
Debug
(
LDAP_DEBUG_TRACE
,
LDAP_XSTRING
(
bdb_add
)
": entry failed op attrs add: "
"%s (%d)
\n
"
,
rs
->
sr_text
,
rs
->
sr_err
,
0
);
goto
return_results
;
}
/* check entry's schema */
rs
->
sr_err
=
entry_schema_check
(
op
,
op
->
oq_add
.
rs_e
,
NULL
,
...
...
servers/slapd/back-ldbm/add.c
View file @
1de6a92c
...
...
@@ -56,7 +56,13 @@ ldbm_back_add(
Debug
(
LDAP_DEBUG_ARGS
,
"==> ldbm_back_add: %s
\n
"
,
op
->
o_req_dn
.
bv_val
,
0
,
0
);
slap_add_opattrs
(
op
,
&
rs
->
sr_text
,
textbuf
,
textlen
,
1
);
rs
->
sr_err
=
slap_add_opattrs
(
op
,
&
rs
->
sr_text
,
textbuf
,
textlen
,
1
);
if
(
rs
->
sr_err
!=
LDAP_SUCCESS
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"entry failed op attrs add: %s (%d)
\n
"
,
rs
->
sr_text
,
rs
->
sr_err
,
0
);
goto
return_results
;
}
cb
.
sc_cleanup
=
ldbm_csn_cb
;
cb
.
sc_next
=
op
->
o_callback
;
...
...
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