summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/partition.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-26 10:23:10 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-27 11:32:08 +1100
commit53b160e1b80f66b0728020783df5bf433048a148 (patch)
tree2c4853b025dca38b20228c0a5867c02696c03fd9 /source4/dsdb/samdb/ldb_modules/partition.c
parentf381faa8d6fc2c4205e7d59c91f00324f70ca8b9 (diff)
downloadsamba-53b160e1b80f66b0728020783df5bf433048a148.tar.gz
samba-53b160e1b80f66b0728020783df5bf433048a148.tar.bz2
samba-53b160e1b80f66b0728020783df5bf433048a148.zip
s4:dsdb Remove partition_extended_schema_update_now
The schema update now request is now handled above the partitions module. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/partition.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c
index 587d9206c5..c6f6f6a5f3 100644
--- a/source4/dsdb/samdb/ldb_modules/partition.c
+++ b/source4/dsdb/samdb/ldb_modules/partition.c
@@ -1072,52 +1072,6 @@ static int partition_sequence_number(struct ldb_module *module, struct ldb_reque
return ldb_module_done(req, NULL, ext, LDB_SUCCESS);
}
-static int partition_extended_schema_update_now(struct ldb_module *module, struct ldb_request *req)
-{
- struct dsdb_partition *partition;
- struct partition_private_data *data;
- struct ldb_dn *schema_dn;
- struct partition_context *ac;
- int ret;
-
- schema_dn = talloc_get_type(req->op.extended.data, struct ldb_dn);
- if (!schema_dn) {
- ldb_debug(ldb_module_get_ctx(module), LDB_DEBUG_FATAL, "partition_extended: invalid extended data\n");
- return LDB_ERR_PROTOCOL_ERROR;
- }
-
- data = talloc_get_type(module->private_data, struct partition_private_data);
- if (!data) {
- return LDB_ERR_OPERATIONS_ERROR;
- }
-
- partition = find_partition( data, schema_dn, req);
- if (!partition) {
- return ldb_next_request(module, req);
- }
-
- ac = partition_init_ctx(module, req);
- if (!ac) {
- return LDB_ERR_OPERATIONS_ERROR;
- }
-
- /* we need to add a control but we never touch the original request */
- ret = partition_prep_request(ac, partition);
- if (ret != LDB_SUCCESS) {
- return ret;
- }
-
- /* fire the first one */
- ret = partition_call_first(ac);
-
- if (ret != LDB_SUCCESS){
- return ret;
- }
-
- return ldb_module_done(req, NULL, NULL, ret);
-}
-
-
/* extended */
static int partition_extended(struct ldb_module *module, struct ldb_request *req)
{
@@ -1143,11 +1097,6 @@ static int partition_extended(struct ldb_module *module, struct ldb_request *req
return partition_create(module, req);
}
- /* forward schemaUpdateNow operation to schema_fsmo module*/
- if (strcmp(req->op.extended.oid, DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID) == 0) {
- return partition_extended_schema_update_now( module, req );
- }
-
/*
* as the extended operation has no dn
* we need to send it to all partitions