summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-06-05 14:41:15 -0400
committerRob Crittenden <rcritten@redhat.com>2008-06-09 22:13:54 -0400
commit42cada4594ee34d570f90385d5994fea1e4741b4 (patch)
tree04025500e702d89a8e4dd17d8d492853bad77938
parent48f2e3c3dbf74afa1bbb2e0971dc9a7f444c1447 (diff)
downloadfreeipa.git-42cada4594ee34d570f90385d5994fea1e4741b4.tar.gz
freeipa.git-42cada4594ee34d570f90385d5994fea1e4741b4.tar.xz
freeipa.git-42cada4594ee34d570f90385d5994fea1e4741b4.zip
When an LDAP connection fails, display the host one is trying to connect to.
450111
-rw-r--r--ipa-server/ipaserver/krbinstance.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipa-server/ipaserver/krbinstance.py b/ipa-server/ipaserver/krbinstance.py
index 7ad03e1c..deea4a6e 100644
--- a/ipa-server/ipaserver/krbinstance.py
+++ b/ipa-server/ipaserver/krbinstance.py
@@ -110,8 +110,8 @@ class KrbInstance(service.Service):
try:
self.conn = ipaldap.IPAdmin(self.fqdn)
self.conn.do_simple_bind(bindpw=self.admin_password)
- except ipaerror.exception_for(ipaerror.LDAP_DATABASE_ERROR), e:
- logging.critical("Could not connect to DS")
+ except Exception, e:
+ logging.critical("Could not connect to the Directory Server on %s" % self.fqdn)
raise e
self.backup_state("running", self.is_running())
@@ -245,6 +245,8 @@ class KrbInstance(service.Service):
#except LDAPError, e:
# logging.critical("Error during SASL mapping removal: %s" % str(e))
except Exception, e:
+ logging.critical("Could not connect to the Directory Server on %s" % self.fqdn)
+ raise e
print type(e)
print dir(e)
raise e