summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-manage
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2013-02-04 09:35:13 -0500
committerRob Crittenden <rcritten@redhat.com>2013-02-07 16:49:31 -0500
commitcbb262dc07ea0615068a630e6c7136e3200d5a06 (patch)
tree6e05af130a32f8715558e8b4b1082da5f522f8e9 /install/tools/ipa-replica-manage
parent076775a0f8c9ee0d17b1ed9356f1a8429fc47443 (diff)
downloadfreeipa-cbb262dc07ea0615068a630e6c7136e3200d5a06.tar.gz
freeipa-cbb262dc07ea0615068a630e6c7136e3200d5a06.tar.xz
freeipa-cbb262dc07ea0615068a630e6c7136e3200d5a06.zip
Add LDAP server fallback to client installer
Change the discovery code to validate all servers, regardless of where the originated (either via SRV records or --server). This will prevent the client installer from failing if one of those records points to a server that is either not running or is not an IPA server. If a server is not available it is not removed from the list of configured servers, simply moved to the end of the list. If a server is not an IPA server it is removed. https://fedorahosted.org/freeipa/ticket/3388
Diffstat (limited to 'install/tools/ipa-replica-manage')
-rwxr-xr-xinstall/tools/ipa-replica-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 809103565..698a02f54 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -770,7 +770,7 @@ def add_link(realm, replica1, replica2, dirman_passwd, options):
standard_logging_setup(console_format='%(message)s')
ds = ipadiscovery.IPADiscovery()
- ret = ds.search(server=replica2)
+ ret = ds.search(servers=[replica2])
if ret == ipadiscovery.NOT_IPA_SERVER:
sys.exit("Connection unsuccessful: %s is not an IPA Server." %