Make sure nsds5ReplicaStripAttrs is set on agreements

Add nsds5ReplicaStripAttrs to the agreement LDAP entry before the agreement
is created.

https://fedorahosted.org/freeipa/ticket/3989
This commit is contained in:
Ana Krivokapic
2013-10-24 20:36:30 +02:00
committed by Martin Kosek
parent c518a80ab7
commit 9a368b6358

View File

@@ -627,6 +627,7 @@ class ReplicationManager(object):
if iswinsync: if iswinsync:
self.setup_winsync_agmt(entry, win_subtree) self.setup_winsync_agmt(entry, win_subtree)
entry['nsds5ReplicaStripAttrs'] = [" ".join(STRIP_ATTRS)]
a_conn.add_entry(entry) a_conn.add_entry(entry)
try: try:
@@ -639,8 +640,6 @@ class ReplicationManager(object):
# that we will have to set the memberof fixup task # that we will have to set the memberof fixup task
self.need_memberof_fixup = True self.need_memberof_fixup = True
entry['nsds5ReplicaStripAttrs'] = [" ".join(STRIP_ATTRS)]
wait_for_entry(a_conn, entry) wait_for_entry(a_conn, entry)
def needs_memberof_fixup(self): def needs_memberof_fixup(self):