update dn can add/modrdn/delete entries rooted at '' (according to ACLs)

This commit is contained in:
Pierangelo Masarati 2001-11-16 15:06:18 +00:00
parent 563694039f
commit 4c283cfe65
3 changed files with 4 additions and 4 deletions

View File

@ -195,7 +195,7 @@ retry: rc = txn_abort( ltid );
* or with parent ""
*/
if ( !be_isroot( be, op->o_ndn )) {
if ( be_issuffix( be, "" ) ) {
if ( be_issuffix( be, "" ) || be_isupdate( be, op->o_ndn ) ) {
static const Entry rootp = { NOID, "", "", NULL, NULL };
p = (Entry *)&rootp;

View File

@ -163,7 +163,7 @@ retry: /* transaction retry */
/* no parent, must be root to delete */
if( ! be_isroot( be, op->o_ndn ) ) {
if ( be_issuffix( be, "" ) ) {
if ( be_issuffix( be, "" ) || be_isupdate( be, op->o_ndn ) ) {
static const Entry rootp = { NOID, "", "", NULL, NULL };
p = (Entry *)&rootp;

View File

@ -212,7 +212,7 @@ retry: /* transaction retry */
/* no parent, modrdn entry directly under root */
isroot = be_isroot( be, op->o_ndn );
if ( ! isroot ) {
if ( be_issuffix( be, "" ) ) {
if ( be_issuffix( be, "" ) || be_isupdate( be, op->o_ndn ) ) {
p = (Entry *)&roote;
@ -333,7 +333,7 @@ retry: /* transaction retry */
/* no parent, modrdn entry directly under root */
if ( ! isroot ) {
if ( be_issuffix( be, "" ) ) {
if ( be_issuffix( be, "" ) || be_isupdate( be, op->o_ndn ) ) {
np = (Entry *)&roote;