summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-03 12:52:31 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-03 18:36:08 +1000
commite6257d94de5ba72f4c14ee13f3643f39d2caf5c6 (patch)
tree783649b431ba14ee18703fe6d9a0bb776e52c373
parent95fd3c8ee061100fc5949440f257e53084df72a7 (diff)
downloadsamba-e6257d94de5ba72f4c14ee13f3643f39d2caf5c6.tar.gz
samba-e6257d94de5ba72f4c14ee13f3643f39d2caf5c6.tar.xz
samba-e6257d94de5ba72f4c14ee13f3643f39d2caf5c6.zip
add the the linked attributes elements to the repl structure
This exposes the linked_attributes to the repl_meta_data module
-rw-r--r--source4/dsdb/repl/replicated_objects.c5
-rw-r--r--source4/dsdb/samdb/samdb.h5
2 files changed, 9 insertions, 1 deletions
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 {