Skip to content
Snippets Groups Projects
Commit 525cd6f7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Port ITS#1430 changes from ldbm

parent 0f10bed0
No related branches found
No related tags found
No related merge requests found
......@@ -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\" "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment