mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix prev commit, reset parent == slap_entry_root
This commit is contained in:
parent
0f9ad702c3
commit
1769485868
@ -163,10 +163,15 @@ ldbm_back_modrdn(
|
||||
}
|
||||
|
||||
/* check parent for "children" acl */
|
||||
if ( ! access_allowed( op, p, children, NULL,
|
||||
rs->sr_err = access_allowed( op, p, children, NULL,
|
||||
op->oq_modrdn.rs_newSup != NULL ?
|
||||
ACL_WDEL : ACL_WRITE,
|
||||
NULL ) )
|
||||
NULL );
|
||||
|
||||
if ( BER_BVISEMPTY( &p_ndn ))
|
||||
p = NULL;
|
||||
|
||||
if ( !rs->sr_err )
|
||||
{
|
||||
Debug( LDAP_DEBUG_TRACE, "no access to parent\n", 0,
|
||||
0, 0 );
|
||||
@ -176,9 +181,6 @@ ldbm_back_modrdn(
|
||||
goto return_results;
|
||||
}
|
||||
|
||||
if ( BER_BVISEMPTY( &p_ndn ))
|
||||
p = NULL;
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldbm_back_modrdn: wr to children of entry %s OK\n",
|
||||
p_ndn.bv_val, 0, 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user