summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-16 13:25:34 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-16 13:29:49 +0100
commitd2453b52d84c148176b7384d0973645423647d38 (patch)
tree0a18b2744dceabaf5d8c84cebc2f4c7590574912 /source4
parentf863f434a01d49a27b963ec71a86727f0d95dc59 (diff)
downloadsamba-d2453b52d84c148176b7384d0973645423647d38.tar.gz
samba-d2453b52d84c148176b7384d0973645423647d38.tar.bz2
samba-d2453b52d84c148176b7384d0973645423647d38.zip
s4:descriptor LDB module - make more clear that special control entries never should be handled by modules
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/descriptor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c
index 0515dfe592..c0f2527e4c 100644
--- a/source4/dsdb/samdb/ldb_modules/descriptor.c
+++ b/source4/dsdb/samdb/ldb_modules/descriptor.c
@@ -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);
}