]> git.sur5r.net Git - openldap/commitdiff
Modify meaning of SLAPD_CHILD_MODIFICATION_ENTRY_ACL to augment
authorKurt Zeilenga <kurt@openldap.org>
Fri, 30 Apr 1999 02:34:46 +0000 (02:34 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 30 Apr 1999 02:34:46 +0000 (02:34 +0000)
"children" ACLs with "entry" ACLs (versus replacement of children
ACLs with "entry" ACLs).

servers/slapd/back-bdb2/delete.c
servers/slapd/back-bdb2/modrdn.c
servers/slapd/back-ldbm/delete.c
servers/slapd/back-ldbm/modrdn.c

index 1e094893d51864a66dc91ae8d8378dd70f937bd4..b00c155ec309615d66af41bc552d6bb872de94fb 100644 (file)
@@ -70,7 +70,6 @@ bdb2i_back_delete_internal(
                        goto return_results;
                }
 
-#ifndef SLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL
                /* check parent for "children" acl */
                if ( ! access_allowed( be, conn, op, p,
                        "children", NULL, ACL_WRITE ) )
@@ -81,7 +80,6 @@ bdb2i_back_delete_internal(
                                "", "" );
                        goto return_results;
                }
-#endif
 
        } else {
                /* no parent, must be root to delete */
index d906e0886613fcade508f63324e995ff184caa48..0506a87252eacf88f9418d82cbddcc29499fd12b 100644 (file)
@@ -93,7 +93,6 @@ bdb2i_back_modrdn_internal(
                        goto return_results;
                }
 
-#ifndef SLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL
                /* check parent for "children" acl */
                if ( ! access_allowed( be, conn, op, p,
                        "children", NULL, ACL_WRITE ) )
@@ -104,7 +103,6 @@ bdb2i_back_modrdn_internal(
                                "", "" );
                        goto return_results;
                }
-#endif
 
                p_dn = dn_parent( be, e->e_dn );
 
@@ -159,7 +157,6 @@ bdb2i_back_modrdn_internal(
                       "ldbm_back_modrdn: wr to new parent OK np=%p, id=%d\n",
                       np, np->e_id, 0 );
            
-#ifndef SLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL
                /* check newSuperior for "children" acl */
                if ( !access_allowed( be, conn, op, np, "children", NULL,
                                      ACL_WRITE ) )
@@ -171,7 +168,6 @@ bdb2i_back_modrdn_internal(
                                          "", "" );
                        goto return_results;
                }
-#endif
 
                Debug( LDAP_DEBUG_TRACE,
                       "ldbm_back_modrdn: wr to new parent's children OK\n",
index 6292cf06574deb311d523795614ffdb8a00794e3..d0be72d6c62fcd9578bcae1c6f607f82220dd43c 100644 (file)
@@ -72,7 +72,6 @@ ldbm_back_delete(
                        goto return_results;
                }
 
-#ifndef SLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL
                /* check parent for "children" acl */
                if ( ! access_allowed( be, conn, op, p,
                        "children", NULL, ACL_WRITE ) )
@@ -84,7 +83,6 @@ ldbm_back_delete(
                                "", "" );
                        goto return_results;
                }
-#endif
 
        } else {
                /* no parent, must be root to delete */
index 21b48e2002d02cd9ca592037f96f3447d9b8a19e..b0e4fe1a76d19f5c3f8e5fd201eb31ea37e3df92 100644 (file)
@@ -100,7 +100,6 @@ ldbm_back_modrdn(
                        goto return_results;
                }
 
-#ifndef SLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL
                /* check parent for "children" acl */
                if ( ! access_allowed( be, conn, op, p,
                        "children", NULL, ACL_WRITE ) )
@@ -115,7 +114,6 @@ ldbm_back_modrdn(
                Debug( LDAP_DEBUG_TRACE,
                       "ldbm_back_modrdn: wr to children of entry %s OK\n",
                       p_ndn, 0, 0 );
-#endif
                
                p_dn = dn_parent( be, e->e_dn );
        
@@ -173,7 +171,6 @@ ldbm_back_modrdn(
                       "ldbm_back_modrdn: wr to new parent OK np=%p, id=%d\n",
                       np, np->e_id, 0 );
            
-#ifndef SLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL
                /* check newSuperior for "children" acl */
                if ( !access_allowed( be, conn, op, np, "children", NULL,
                                      ACL_WRITE ) )
@@ -185,7 +182,6 @@ ldbm_back_modrdn(
                                          "", "" );
                        goto return_results;
                }
-#endif
 
                Debug( LDAP_DEBUG_TRACE,
                       "ldbm_back_modrdn: wr to new parent's children OK\n",
@@ -242,7 +238,6 @@ ldbm_back_modrdn(
        }
 
 
-
        /* Get attribute type and attribute value of our new rdn, we will
         * need to add that to our new entry
         */