diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-07-17 10:09:35 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-09-04 05:30:57 -0400 |
commit | 2ede70b7209c0c85642600a60642887096a96530 (patch) | |
tree | bd361c896d6602af17c1f147fd68b602c65fb908 /ipaserver/install/replication.py | |
parent | 208e6930de94f56264f5964411bbe1b0d6684516 (diff) | |
download | freeipa-2ede70b7209c0c85642600a60642887096a96530.tar.gz freeipa-2ede70b7209c0c85642600a60642887096a96530.tar.xz freeipa-2ede70b7209c0c85642600a60642887096a96530.zip |
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
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r-- | ipaserver/install/replication.py | 9 |
1 files changed, 9 insertions, 0 deletions
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): |