From 9b752399c11b84c2f671e0dcc6554b65e9d4c1ae Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 22 Sep 2009 14:25:12 -0700 Subject: s4-ldbmodules: allow instanceType to be specified by clients This is needed for the WSPP ADS testsuite --- source4/dsdb/samdb/ldb_modules/instancetype.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- cgit