summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-05 17:28:13 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-10 11:12:04 +0100
commit8ce131431ca00882ade037430b31cbd3f9c0445e (patch)
treec4411c14883a2bf7911928c74dbd7050ab7a2eeb /source4/dsdb/samdb
parentf68d54269cd087dc7f9168fe2711beddcb0ce94e (diff)
downloadsamba-8ce131431ca00882ade037430b31cbd3f9c0445e.tar.gz
samba-8ce131431ca00882ade037430b31cbd3f9c0445e.tar.bz2
samba-8ce131431ca00882ade037430b31cbd3f9c0445e.zip
s4:instancetype LDB module - don't impede control requests
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/instancetype.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/instancetype.c b/source4/dsdb/samdb/ldb_modules/instancetype.c
index 21212bffa7..2044b05be4 100644
--- a/source4/dsdb/samdb/ldb_modules/instancetype.c
+++ b/source4/dsdb/samdb/ldb_modules/instancetype.c
@@ -187,6 +187,13 @@ static int instancetype_mod(struct ldb_module *module, struct ldb_request *req)
struct ldb_context *ldb = ldb_module_get_ctx(module);
struct ldb_message_element *el;
+ /* do not manipulate our control entries */
+ if (ldb_dn_is_special(req->op.mod.message->dn)) {
+ return ldb_next_request(module, req);
+ }
+
+ ldb_debug(ldb, LDB_DEBUG_TRACE, "instancetype_mod\n");
+
el = ldb_msg_find_element(req->op.mod.message, "instanceType");
if (el != NULL) {
ldb_set_errstring(ldb, "instancetype: the 'instanceType' attribute can never be changed!");