s4-partition: allow creation of uninstantiated partitions
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Sep 2011 23:30:02 +0000 (09:30 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 4 Oct 2011 04:08:56 +0000 (15:08 +1100)
this is needed for a subdomain join by a new NC. The NC is initially
uninstantiated

source4/dsdb/samdb/ldb_modules/new_partition.c

index 3d94bbed816ae74102bd0a1008747a31bc257d56..87983f41c8ce7b8f3031ac8792f5b885f902b15e 100644 (file)
@@ -156,12 +156,6 @@ static int new_partition_add(struct ldb_module *module, struct ldb_request *req)
                        return ldb_next_request(module, req);
                }
 
-               if (instanceType & INSTANCE_TYPE_UNINSTANT) {
-                       DEBUG(0,(__location__ ": Skipping uninstantiated partition %s\n",
-                                ldb_dn_get_linearized(req->op.add.message->dn)));
-                       return ldb_next_request(module, req);
-               }
-
                if (ldb_msg_find_attr_as_bool(req->op.add.message, "isDeleted", false)) {
                        DEBUG(0,(__location__ ": Skipping deleted partition %s\n",
                                 ldb_dn_get_linearized(req->op.add.message->dn)));