mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Allow changing rdn only, locked parent twice when old and new parent were
the same.
This commit is contained in:
parent
4391e6654a
commit
43015fc862
1 changed files with 11 additions and 1 deletions
|
|
@ -184,7 +184,17 @@ ldbm_back_modrdn(
|
|||
np_ndn = ch_strdup( np_dn );
|
||||
(void) dn_normalize( np_ndn );
|
||||
|
||||
/* newSuperior == oldParent?, if so ==> ERROR */
|
||||
/* newSuperior == oldParent? */
|
||||
if ( strcmp( p_ndn, np_ndn ) == 0 ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldbm_back_modrdn: new parent \"%s\" seems to be the same as old parent \"%s\"...\n",
|
||||
newSuperior, p_dn, 0 );
|
||||
newSuperior = NULL; /* ignore newSuperior */
|
||||
}
|
||||
}
|
||||
|
||||
if ( newSuperior != NULL ) {
|
||||
|
||||
/* newSuperior == entry being moved?, if so ==> ERROR */
|
||||
/* Get Entry with dn=newSuperior. Does newSuperior exist? */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue