s4:descriptor LDB module - make more clear that special control entries never should...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 16 Nov 2010 12:25:34 +0000 (13:25 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 16 Nov 2010 12:29:49 +0000 (13:29 +0100)
source4/dsdb/samdb/ldb_modules/descriptor.c

index 0515dfe592d5af5dab7191304ef64ab829dd200a..c0f2527e4c28b7dead283910067070b2ee65e3a6 100644 (file)
@@ -785,6 +785,7 @@ static int descriptor_change(struct ldb_module *module, struct ldb_request *req)
        }
        ldb_debug(ldb, LDB_DEBUG_TRACE,"descriptor_change: %s\n", ldb_dn_get_linearized(dn));
 
+       /* do not manipulate our control entries */
        if (ldb_dn_is_special(dn)) {
                return ldb_next_request(module, req);
        }
@@ -865,6 +866,12 @@ static int descriptor_rename(struct ldb_module *module, struct ldb_request *req)
 {
        struct ldb_context *ldb = ldb_module_get_ctx(module);
        ldb_debug(ldb, LDB_DEBUG_TRACE,"descriptor_rename: %s\n", ldb_dn_get_linearized(req->op.rename.olddn));
+
+       /* do not manipulate our control entries */
+       if (ldb_dn_is_special(req->op.rename.olddn)) {
+               return ldb_next_request(module, req);
+       }
+
        return ldb_next_request(module, req);
 }