add the the linked attributes elements to the repl structure
authorAndrew Tridgell <tridge@samba.org>
Thu, 3 Sep 2009 02:52:31 +0000 (12:52 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 3 Sep 2009 08:36:08 +0000 (18:36 +1000)
This exposes the linked_attributes to the repl_meta_data module

source4/dsdb/repl/replicated_objects.c
source4/dsdb/samdb/samdb.h

index 8018254a00bc5a4aca15067d06231ccc943417cb..4005d0ba930374d9ea33378ff43c81f0ba3cafea 100644 (file)
@@ -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;
index 4a40f6e623155de645117a7c481fae0545ac39a3..d86200399a87634646ce1dbb593fa1dafe566304 100644 (file)
@@ -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 {