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
This commit is contained in:
Rob Crittenden
2012-01-27 13:10:45 -05:00
committed by Martin Kosek
parent 872047fa0e
commit 31f00f90f1
2 changed files with 63 additions and 42 deletions

View File

@@ -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)