s4-repl: dsdb_extended_replicated_objects_convert -> dsdb_replicated_objects_convert/
authorKamen Mazdrashki <kamenim@samba.org>
Sun, 7 Nov 2010 21:04:33 +0000 (23:04 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Thu, 11 Nov 2010 18:54:20 +0000 (18:54 +0000)
It is part of dsdb_replicated_* family of functions

source4/dsdb/repl/drepl_out_helpers.c
source4/dsdb/repl/replicated_objects.c
source4/libnet/libnet_vampire.c
source4/torture/drs/rpc/dssync.c

index 5de8af074c4afa594cff81cefabd89e33e8a9d64..b99f1267feac13e1bfeb1fdb1b3bcad2fd4b4205 100644 (file)
@@ -580,17 +580,17 @@ static void dreplsrv_op_pull_source_apply_changes_trigger(struct tevent_req *req
                return;
        }
 
-       status = dsdb_extended_replicated_objects_convert(service->samdb,
-                                                         partition->nc.dn,
-                                                         mapping_ctr,
-                                                         object_count,
-                                                         first_object,
-                                                         linked_attributes_count,
-                                                         linked_attributes,
-                                                         &rf1,
-                                                         uptodateness_vector,
-                                                         &drsuapi->gensec_skey,
-                                                         state, &objects);
+       status = dsdb_replicated_objects_convert(service->samdb,
+                                                partition->nc.dn,
+                                                mapping_ctr,
+                                                object_count,
+                                                first_object,
+                                                linked_attributes_count,
+                                                linked_attributes,
+                                                &rf1,
+                                                uptodateness_vector,
+                                                &drsuapi->gensec_skey,
+                                                state, &objects);
        if (!W_ERROR_IS_OK(status)) {
                nt_status = werror_to_ntstatus(WERR_BAD_NET_RESP);
                DEBUG(0,("Failed to convert objects: %s/%s\n",
index 8cc4822c398c394e0ea4cb7ff1fa962b4579d857..5e182776297c3ce322e8cc54c2054fb50fcc2880 100644 (file)
@@ -196,18 +196,18 @@ WERROR dsdb_convert_object_ex(struct ldb_context *ldb,
        return WERR_OK;
 }
 
-WERROR dsdb_extended_replicated_objects_convert(struct ldb_context *ldb,
-                                               const char *partition_dn_str,
-                                               const struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr,
-                                               uint32_t object_count,
-                                               const struct drsuapi_DsReplicaObjectListItemEx *first_object,
-                                               uint32_t linked_attributes_count,
-                                               const struct drsuapi_DsReplicaLinkedAttribute *linked_attributes,
-                                               const struct repsFromTo1 *source_dsa,
-                                               const struct drsuapi_DsReplicaCursor2CtrEx *uptodateness_vector,
-                                               const DATA_BLOB *gensec_skey,
-                                               TALLOC_CTX *mem_ctx,
-                                               struct dsdb_extended_replicated_objects **objects)
+WERROR dsdb_replicated_objects_convert(struct ldb_context *ldb,
+                                      const char *partition_dn_str,
+                                      const struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr,
+                                      uint32_t object_count,
+                                      const struct drsuapi_DsReplicaObjectListItemEx *first_object,
+                                      uint32_t linked_attributes_count,
+                                      const struct drsuapi_DsReplicaLinkedAttribute *linked_attributes,
+                                      const struct repsFromTo1 *source_dsa,
+                                      const struct drsuapi_DsReplicaCursor2CtrEx *uptodateness_vector,
+                                      const DATA_BLOB *gensec_skey,
+                                      TALLOC_CTX *mem_ctx,
+                                      struct dsdb_extended_replicated_objects **objects)
 {
        WERROR status;
        struct ldb_dn *partition_dn;
index 4bb0e92547cb280fbf7263ad290e21daa394312c..cb89213fcf2b9441f8f1d3e7168f9ef2bbb52f38 100644 (file)
@@ -409,17 +409,17 @@ static NTSTATUS libnet_vampire_cb_apply_schema(struct libnet_vampire_cb_state *s
        s->self_made_schema = NULL;
 
        /* Now convert the schema elements again, using the schema we finalised, ready to actually import */
-       status = dsdb_extended_replicated_objects_convert(s->ldb,
-                                                         c->partition->nc.dn,
-                                                         mapping_ctr,
-                                                         object_count,
-                                                         first_object,
-                                                         linked_attributes_count,
-                                                         linked_attributes,
-                                                         s_dsa,
-                                                         uptodateness_vector,
-                                                         c->gensec_skey,
-                                                         s, &schema_objs);
+       status = dsdb_replicated_objects_convert(s->ldb,
+                                                c->partition->nc.dn,
+                                                mapping_ctr,
+                                                object_count,
+                                                first_object,
+                                                linked_attributes_count,
+                                                linked_attributes,
+                                                s_dsa,
+                                                uptodateness_vector,
+                                                c->gensec_skey,
+                                                s, &schema_objs);
        if (!W_ERROR_IS_OK(status)) {
                DEBUG(0,("Failed to convert objects when trying to import over DRS (2nd pass, to store remote schema): %s\n", win_errstr(status)));
                return werror_to_ntstatus(status);
@@ -676,17 +676,17 @@ NTSTATUS libnet_vampire_cb_store_chunk(void *private_data,
        }
 
 
-       status = dsdb_extended_replicated_objects_convert(s->ldb,
-                                                         c->partition->nc.dn,
-                                                         mapping_ctr,
-                                                         object_count,
-                                                         first_object,
-                                                         linked_attributes_count,
-                                                         linked_attributes,
-                                                         s_dsa,
-                                                         uptodateness_vector,
-                                                         c->gensec_skey,
-                                                         s, &objs);
+       status = dsdb_replicated_objects_convert(s->ldb,
+                                                c->partition->nc.dn,
+                                                mapping_ctr,
+                                                object_count,
+                                                first_object,
+                                                linked_attributes_count,
+                                                linked_attributes,
+                                                s_dsa,
+                                                uptodateness_vector,
+                                                c->gensec_skey,
+                                                s, &objs);
        if (!W_ERROR_IS_OK(status)) {
                DEBUG(0,("Failed to convert objects: %s\n", win_errstr(status)));
                return werror_to_ntstatus(status);
index db1703d62d2377e0197ffd72b947f4aafd080256..9c65b91719d4edf89741a51d9e90ce3f6446ff63 100644 (file)
@@ -340,15 +340,15 @@ static bool test_analyse_objects(struct torture_context *tctx,
                       "drs_util_dsdb_schema_load_ldb() failed");
        ldap_schema = dsdb_get_schema(ldb, NULL);
 
-       status = dsdb_extended_replicated_objects_convert(ldb,
-                                                         partition,
-                                                         mapping_ctr,
-                                                         object_count,
-                                                         first_object,
-                                                         0, NULL,
-                                                         NULL, NULL,
-                                                         gensec_skey,
-                                                         ctx, &objs);
+       status = dsdb_replicated_objects_convert(ldb,
+                                                partition,
+                                                mapping_ctr,
+                                                object_count,
+                                                first_object,
+                                                0, NULL,
+                                                NULL, NULL,
+                                                gensec_skey,
+                                                ctx, &objs);
        torture_assert_werr_ok(tctx, status, "dsdb_extended_replicated_objects_convert() failed!");
 
        extended_dn_ctrl = talloc(objs, struct ldb_extended_dn_control);