summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-11 21:45:35 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-11 21:45:35 +1000
commit81474df7858273024ae4e214dc339b0754c71048 (patch)
treef69365ebe313e374f0c74d2d02ae7639dd8055fe /source4
parent2eb61efd1f050696a7835cfc5c7af96bbcb9708e (diff)
downloadsamba-81474df7858273024ae4e214dc339b0754c71048.tar.gz
samba-81474df7858273024ae4e214dc339b0754c71048.tar.bz2
samba-81474df7858273024ae4e214dc339b0754c71048.zip
s4-repl: don't update replPropertyMetaData for non-replicated attributes
thanks to Metze for spotting this
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index c469936645..bb446333e2 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -491,6 +491,13 @@ static int replmd_update_rpmd_element(struct ldb_context *ldb,
return LDB_ERR_OPERATIONS_ERROR;
}
+ if ((a->systemFlags & 0x00000001) || (a->systemFlags & 0x00000004)) {
+ /* if the attribute is not replicated (0x00000001)
+ * or constructed (0x00000004) it has no metadata
+ */
+ return LDB_SUCCESS;
+ }
+
for (i=0; i<omd->ctr.ctr1.count; i++) {
if (a->attributeID_id == omd->ctr.ctr1.array[i].attid) break;
}