From 31f00f90f1a08804e9dfdd6bdf85c2dc245bea51 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 27 Jan 2012 13:10:45 -0500 Subject: Fix managing winsync replication agreements with ipa-replica-manage force-sync, re-initialize and del were not working because they all attempted to contact the AD server. winsync agreements are managed on the local 389-ds instance. This also: - requires root to create winsync agreement (for updating NSS db) - fixes filter in get_replication_agreement() to work with winsync https://fedorahosted.org/freeipa/ticket/2128 --- ipaserver/install/replication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/install') diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index b36fbf8de..9247b58fc 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -226,7 +226,7 @@ class ReplicationManager(object): Returns None if not found. """ - filt = "(&(objectclass=nsds5ReplicationAgreement)(nsDS5ReplicaHost=%s))" % hostname + filt = "(&(|(objectclass=nsds5ReplicationAgreement)(objectclass=nsDSWindowsReplicationAgreement))(nsDS5ReplicaHost=%s))" % hostname try: entry = self.conn.search_s("cn=mapping tree,cn=config", ldap.SCOPE_SUBTREE, filt) -- cgit