summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-11-16 13:59:11 +0100
committerMartin Kosek <mkosek@redhat.com>2012-11-23 12:19:20 +0100
commit83ef2e251fa0550ebecc68c4c54406b1cef7f3b3 (patch)
tree116ea69c6b4eb2bd8b7ee8d6df74076470d7a682 /install
parent17f91dac5501b165615453c79f75f7df88459544 (diff)
downloadfreeipa.git-83ef2e251fa0550ebecc68c4c54406b1cef7f3b3.tar.gz
freeipa.git-83ef2e251fa0550ebecc68c4c54406b1cef7f3b3.tar.xz
freeipa.git-83ef2e251fa0550ebecc68c4c54406b1cef7f3b3.zip
Filter suffix in replication management tools
With the new unified Dogtag10 LDAP database, PKI-CA data and the agreements themselves are now in the main LDAP instance. Replication management tools now need to properly filter replication agreements based on the suffix to avoid clashing of agreements of different types.
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-csreplica-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-csreplica-manage b/install/tools/ipa-csreplica-manage
index f2924993..55edd1a2 100755
--- a/install/tools/ipa-csreplica-manage
+++ b/install/tools/ipa-csreplica-manage
@@ -376,7 +376,7 @@ def re_initialize(realm, options):
thishost = installutils.get_fqdn()
- filter = "(&(nsDS5ReplicaHost=%s)(|(objectclass=nsDSWindowsReplicationAgreement)(objectclass=nsds5ReplicationAgreement)))" % thishost
+ filter = repl.get_agreement_filter(host=thishost)
entry = repl.conn.search_s(DN(('cn', 'config')), ldap.SCOPE_SUBTREE, filter)
if len(entry) == 0:
root_logger.error("Unable to find %s -> %s replication agreement" % (options.fromhost, thishost))