From 2ede70b7209c0c85642600a60642887096a96530 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 17 Jul 2012 10:09:35 -0400 Subject: Add nsds5ReplicaStripAttrs to replica agreements Generalize the fix_replica_memberof update plugin to allow updating more replication attributes. Add nsds5ReplicaStripAttrs to replication agreements on update and replica install. https://fedorahosted.org/freeipa/ticket/2534 --- ipaserver/install/replication.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipaserver/install/replication.py') diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index d6931db43..8501a8c2c 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -51,6 +51,13 @@ TOTAL_EXCLUDES = ('entryusn', # List of attributes that need to be excluded from normal replication. EXCLUDES = ('memberof', 'idnssoaserial') + TOTAL_EXCLUDES +# List of attributes that are not updated on empty replication +STRIP_ATTRS = ('modifiersName', + 'modifyTimestamp', + 'internalModifiersName', + 'internalModifyTimestamp') + + def replica_conn_check(master_host, host_name, realm, check_ca, admin_password=None): """ @@ -519,6 +526,8 @@ class ReplicationManager(object): # that we will have to set the memberof fixup task self.need_memberof_fixup = True + entry.setValues('nsds5ReplicaStripAttrs', " ".join(STRIP_ATTRS)) + entry = a_conn.waitForEntry(entry) def needs_memberof_fixup(self): -- cgit