e3ffab
From 6aa3004870321dc5f34b2a6a9e6d6cdf2459d7ee Mon Sep 17 00:00:00 2001
e3ffab
From: Rob Crittenden <rcritten@redhat.com>
e3ffab
Date: Thu, 6 Nov 2014 16:10:01 -0500
e3ffab
Subject: [PATCH] Search using proper scope when connecting CA instances
e3ffab
e3ffab
The wrong search scope was being used when trying to determine if
e3ffab
a given master had a CA installed when trying to create a new
e3ffab
connection.
e3ffab
e3ffab
https://fedorahosted.org/freeipa/ticket/4704
e3ffab
e3ffab
Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>
e3ffab
---
e3ffab
 install/tools/ipa-csreplica-manage | 2 +-
e3ffab
 1 file changed, 1 insertion(+), 1 deletion(-)
e3ffab
e3ffab
diff --git a/install/tools/ipa-csreplica-manage b/install/tools/ipa-csreplica-manage
e3ffab
index c534446d7b0daf0ce0709edf952a8795ba85e937..6f6c6c75a122274eeb221f6e0eb15959dec56786 100755
e3ffab
--- a/install/tools/ipa-csreplica-manage
e3ffab
+++ b/install/tools/ipa-csreplica-manage
e3ffab
@@ -303,7 +303,7 @@ def add_link(realm, replica1, replica2, dirman_passwd, options):
e3ffab
 
e3ffab
         dn = DN(('cn', 'CA'), ('cn', replica2), ('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'),
e3ffab
                 ipautil.realm_to_suffix(realm))
e3ffab
-        conn.get_entries(dn, conn.SCOPE_ONELEVEL)
e3ffab
+        conn.get_entries(dn, conn.SCOPE_BASE)
e3ffab
         conn.unbind()
e3ffab
     except errors.NotFound:
e3ffab
         sys.exit('%s does not have a CA configured.' % replica2)
e3ffab
-- 
e3ffab
2.1.0
e3ffab