mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix root entry delete/add
This commit is contained in:
parent
3019716578
commit
1faf38448b
@ -1111,7 +1111,6 @@ backsql_add( Operation *op, SlapReply *rs )
|
||||
|
||||
} else {
|
||||
dnParent( &op->ora_e->e_nname, &pdn );
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the parent
|
||||
@ -1140,6 +1139,7 @@ backsql_add( Operation *op, SlapReply *rs )
|
||||
e = &p;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
if ( get_assert( op ) &&
|
||||
( test_filter( op, op->oq_add.rs_e, get_assertion( op ) )
|
||||
|
@ -217,10 +217,10 @@ backsql_delete( Operation *op, SlapReply *rs )
|
||||
/*
|
||||
* Get the parent
|
||||
*/
|
||||
e_id = bsi.bsi_base_id;
|
||||
if ( !be_issuffix( op->o_bd, &op->o_req_ndn ) ) {
|
||||
dnParent( &op->o_req_ndn, &pdn );
|
||||
bsi.bsi_e = &p;
|
||||
e_id = bsi.bsi_base_id;
|
||||
rs->sr_err = backsql_init_search( &bsi, &pdn,
|
||||
LDAP_SCOPE_BASE,
|
||||
(time_t)(-1), NULL, dbh, op, rs,
|
||||
|
Loading…
Reference in New Issue
Block a user