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
Nadezhda Ivanova
OpenLDAP
Commits
e455a7d4
Commit
e455a7d4
authored
Aug 26, 1999
by
Kurt Zeilenga
Browse files
Defer updating dn2id until after rdn checks... (test005 still broken)
parent
ed3df0a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/modrdn.c
View file @
e455a7d4
...
...
@@ -279,27 +279,6 @@ ldbm_back_modrdn(
}
ldap_pvt_thread_mutex_unlock
(
&
op
->
o_abandonmutex
);
/* delete old one */
if
(
dn2id_delete
(
be
,
e
->
e_ndn
,
e
->
e_id
)
!=
0
)
{
send_ldap_result
(
conn
,
op
,
LDAP_OPERATIONS_ERROR
,
NULL
,
NULL
,
NULL
,
NULL
);
goto
return_results
;
}
(
void
)
cache_delete_entry
(
&
li
->
li_cache
,
e
);
free
(
e
->
e_dn
);
free
(
e
->
e_ndn
);
e
->
e_dn
=
new_dn
;
e
->
e_ndn
=
new_ndn
;
/* add new one */
if
(
dn2id_add
(
be
,
e
->
e_ndn
,
e
->
e_id
)
!=
0
)
{
send_ldap_result
(
conn
,
op
,
LDAP_OPERATIONS_ERROR
,
NULL
,
NULL
,
NULL
,
NULL
);
goto
return_results
;
}
/* Get attribute type and attribute value of our new rdn, we will
* need to add that to our new entry
*/
...
...
@@ -437,12 +416,32 @@ ldbm_back_modrdn(
}
#endif
/* delete old one */
if
(
dn2id_delete
(
be
,
e
->
e_ndn
,
e
->
e_id
)
!=
0
)
{
send_ldap_result
(
conn
,
op
,
LDAP_OPERATIONS_ERROR
,
NULL
,
NULL
,
NULL
,
NULL
);
goto
return_results
;
}
(
void
)
cache_delete_entry
(
&
li
->
li_cache
,
e
);
free
(
e
->
e_dn
);
free
(
e
->
e_ndn
);
e
->
e_dn
=
new_dn
;
e
->
e_ndn
=
new_ndn
;
/* add new one */
if
(
dn2id_add
(
be
,
e
->
e_ndn
,
e
->
e_id
)
!=
0
)
{
send_ldap_result
(
conn
,
op
,
LDAP_OPERATIONS_ERROR
,
NULL
,
NULL
,
NULL
,
NULL
);
goto
return_results
;
}
/* modify memory copy of entry */
if
(
ldbm_modify_internal
(
be
,
conn
,
op
,
dn
,
&
mod
[
deleteoldrdn
?
0
:
1
],
e
)
!=
0
)
{
goto
return_results
;
}
(
void
)
cache_update_entry
(
&
li
->
li_cache
,
e
);
...
...
Write
Preview
Markdown
is supported
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