summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-22 14:25:12 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-22 17:10:05 -0700
commit9b752399c11b84c2f671e0dcc6554b65e9d4c1ae (patch)
tree035385a0bb51812958838bbf1aa0921b6b1e7779
parentfb84edabbe9f358031117de2cf78613c704ac600 (diff)
downloadsamba-9b752399c11b84c2f671e0dcc6554b65e9d4c1ae.tar.gz
samba-9b752399c11b84c2f671e0dcc6554b65e9d4c1ae.tar.bz2
samba-9b752399c11b84c2f671e0dcc6554b65e9d4c1ae.zip
s4-ldbmodules: allow instanceType to be specified by clients
This is needed for the WSPP ADS testsuite
-rw-r--r--source4/dsdb/samdb/ldb_modules/instancetype.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/instancetype.c b/source4/dsdb/samdb/ldb_modules/instancetype.c
index 2e1f1de0fc..de46c0a42a 100644
--- a/source4/dsdb/samdb/ldb_modules/instancetype.c
+++ b/source4/dsdb/samdb/ldb_modules/instancetype.c
@@ -89,6 +89,12 @@ static int instancetype_add(struct ldb_module *module, struct ldb_request *req)
return ldb_next_request(module, req);
}
+ if (ldb_msg_find_element(req->op.add.message, "instanceType")) {
+ /* TODO: we need to validate and possibly create a new
+ partition */
+ return ldb_next_request(module, req);
+ }
+
partition_ctrl = ldb_request_get_control(req, DSDB_CONTROL_CURRENT_PARTITION_OID);
if (!partition_ctrl) {
ldb_debug_set(ldb, LDB_DEBUG_FATAL,