diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-03 12:52:31 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-03 18:36:08 +1000 |
commit | e6257d94de5ba72f4c14ee13f3643f39d2caf5c6 (patch) | |
tree | 783649b431ba14ee18703fe6d9a0bb776e52c373 /source4/dsdb | |
parent | 95fd3c8ee061100fc5949440f257e53084df72a7 (diff) | |
download | samba-e6257d94de5ba72f4c14ee13f3643f39d2caf5c6.tar.gz samba-e6257d94de5ba72f4c14ee13f3643f39d2caf5c6.tar.bz2 samba-e6257d94de5ba72f4c14ee13f3643f39d2caf5c6.zip |
add the the linked attributes elements to the repl structure
This exposes the linked_attributes to the repl_meta_data module
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 5 | ||||
-rw-r--r-- | source4/dsdb/samdb/samdb.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 8018254a00..4005d0ba93 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 4a40f6e623..d86200399a 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 { |