diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-11 21:45:35 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-11 22:13:45 +1000 |
commit | fd3a77839cf747ce884cbd4e1cc212f22c4836a2 (patch) | |
tree | 8d475048739f68dc1fd5a1a868ff44a5a71495b0 /source4/dsdb | |
parent | d7d7613e31b010bc764616b3ea1d75f0c8c90235 (diff) | |
download | samba-fd3a77839cf747ce884cbd4e1cc212f22c4836a2.tar.gz samba-fd3a77839cf747ce884cbd4e1cc212f22c4836a2.tar.bz2 samba-fd3a77839cf747ce884cbd4e1cc212f22c4836a2.zip |
s4-repl: don't update replPropertyMetaData for non-replicated attributes
thanks to Metze for spotting this
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 7 |
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; } |