diff options
-rwxr-xr-x | install/tools/ipa-replica-manage | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage index c804ccb8..fc362f42 100755 --- a/install/tools/ipa-replica-manage +++ b/install/tools/ipa-replica-manage @@ -413,8 +413,11 @@ def re_initialize(realm, thishost, fromhost, dirman_passwd): repl.initialize_replication(agreement.dn, repl.conn) repl.wait_for_repl_init(repl.conn, agreement.dn) - ds = dsinstance.DsInstance(realm_name = realm, dm_password = dirman_passwd) - ds.init_memberof() + # If the agreement doesn't have nsDS5ReplicatedAttributeListTotal it means + # we did not replicate memberOf, do so now. + if not entry[0].getValue('nsDS5ReplicatedAttributeListTotal'): + ds = dsinstance.DsInstance(realm_name = realm, dm_password = dirman_passwd) + ds.init_memberof() def force_sync(realm, thishost, fromhost, dirman_passwd): |