diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-06-05 14:41:15 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-06-09 22:13:41 -0400 |
commit | 76060364fae3e77a3203576ee9a4510bfd1c3578 (patch) | |
tree | 6bba252b0cfad833fa6d514adb5e7a4e807efded /ipa-server/ipaserver/krbinstance.py | |
parent | 108f4a7a28d67d68fa6e10585e9c11c25cbe6ee0 (diff) | |
download | freeipa-76060364fae3e77a3203576ee9a4510bfd1c3578.tar.gz freeipa-76060364fae3e77a3203576ee9a4510bfd1c3578.tar.xz freeipa-76060364fae3e77a3203576ee9a4510bfd1c3578.zip |
When an LDAP connection fails, display the host one is trying to connect to.
450111
Diffstat (limited to 'ipa-server/ipaserver/krbinstance.py')
-rw-r--r-- | ipa-server/ipaserver/krbinstance.py | 6 |
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 |