mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Port ITS#1430 changes from ldbm
This commit is contained in:
parent
0f10bed011
commit
525cd6f783
@ -162,7 +162,7 @@ retry: /* transaction retry */
|
||||
ch_free( pdn );
|
||||
|
||||
/* no parent, must be root to delete */
|
||||
if( ! be_isroot( be, op->o_ndn ) ) {
|
||||
if( ! be_isroot( be, op->o_ndn ) && ! be_issuffix( be, "" ) ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- bdb_delete: no parent and not root\n",
|
||||
0, 0, 0);
|
||||
|
@ -391,7 +391,7 @@ retry: /* transaction retry */
|
||||
/* ACL check of newly added attrs */
|
||||
val.bv_val = new_rdn_vals[ a_cnt ];
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
if ( !access_allowed( be, conn, op, p,
|
||||
if ( !access_allowed( be, conn, op, e,
|
||||
desc, &val, ACL_WRITE ) ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"bdb_modrdn: access to attr \"%s\" "
|
||||
@ -443,7 +443,7 @@ retry: /* transaction retry */
|
||||
/* ACL check of newly added attrs */
|
||||
val.bv_val = new_rdn_vals[ d_cnt ];
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
if ( !access_allowed( be, conn, op, p,
|
||||
if ( !access_allowed( be, conn, op, e,
|
||||
desc, &val, ACL_WRITE ) ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"bdb_modrdn: access to attr \"%s\" "
|
||||
|
Loading…
Reference in New Issue
Block a user