From e6257d94de5ba72f4c14ee13f3643f39d2caf5c6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 3 Sep 2009 12:52:31 +1000 Subject: add the the linked attributes elements to the repl structure This exposes the linked_attributes to the repl_meta_data module --- source4/dsdb/repl/replicated_objects.c | 5 +++++ source4/dsdb/samdb/samdb.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 8018254a00b..4005d0ba930 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -231,6 +231,11 @@ WERROR dsdb_extended_replicated_objects_commit(struct ldb_context *ldb, out->num_objects); W_ERROR_HAVE_NO_MEMORY(out->objects); + /* pass the linked attributes down to the repl_meta_data + module */ + out->linked_attributes_count = linked_attributes_count; + out->linked_attributes = linked_attributes; + for (i=0, cur = first_object; cur; cur = cur->next_object, i++) { if (i == out->num_objects) { return WERR_FOOBAR; diff --git a/source4/dsdb/samdb/samdb.h b/source4/dsdb/samdb/samdb.h index 4a40f6e6231..d86200399a8 100644 --- a/source4/dsdb/samdb/samdb.h +++ b/source4/dsdb/samdb/samdb.h @@ -73,7 +73,7 @@ struct dsdb_extended_replicated_objects { * this is the version of the dsdb_extended_replicated_objects * version 0: initial implementation */ -#define DSDB_EXTENDED_REPLICATED_OBJECTS_VERSION 0 +#define DSDB_EXTENDED_REPLICATED_OBJECTS_VERSION 1 uint32_t version; struct ldb_dn *partition_dn; @@ -83,6 +83,9 @@ struct dsdb_extended_replicated_objects { uint32_t num_objects; struct dsdb_extended_replicated_object *objects; + + uint32_t linked_attributes_count; + const struct drsuapi_DsReplicaLinkedAttribute *linked_attributes; }; struct dsdb_naming_fsmo { -- cgit