From 78f276657ee8abb1a1b9e84337c6fb7050710d15 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 12 Oct 2010 17:26:03 -0400 Subject: Compare resolver IP address with DNS IP address We check the resolver against the resolver and DNS against DNS but not the resolver against DNS so if something is wrong in /etc/hosts we don't catch it and nasty connection messages occur. Also fix a problem where a bogus error message was being displayed because we were trying to close an unconnected LDAP connection. ticket 327 --- ipaserver/install/dsinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/install/dsinstance.py') diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index ca04457a..85f0e7f8 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -133,7 +133,7 @@ def has_managed_entries(host_name, dm_password): logging.critical("Could not connect to the Directory Server on %s" % host_name) raise e finally: - if conn: + if conn.isconnected(): conn.disconnect() -- cgit