mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 18:01:23 -06:00
When an LDAP connection fails, display the host one is trying to connect to.
450111
This commit is contained in:
parent
48f2e3c3db
commit
42cada4594
@ -110,8 +110,8 @@ class KrbInstance(service.Service):
|
|||||||
try:
|
try:
|
||||||
self.conn = ipaldap.IPAdmin(self.fqdn)
|
self.conn = ipaldap.IPAdmin(self.fqdn)
|
||||||
self.conn.do_simple_bind(bindpw=self.admin_password)
|
self.conn.do_simple_bind(bindpw=self.admin_password)
|
||||||
except ipaerror.exception_for(ipaerror.LDAP_DATABASE_ERROR), e:
|
except Exception, e:
|
||||||
logging.critical("Could not connect to DS")
|
logging.critical("Could not connect to the Directory Server on %s" % self.fqdn)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
self.backup_state("running", self.is_running())
|
self.backup_state("running", self.is_running())
|
||||||
@ -245,6 +245,8 @@ class KrbInstance(service.Service):
|
|||||||
#except LDAPError, e:
|
#except LDAPError, e:
|
||||||
# logging.critical("Error during SASL mapping removal: %s" % str(e))
|
# logging.critical("Error during SASL mapping removal: %s" % str(e))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
logging.critical("Could not connect to the Directory Server on %s" % self.fqdn)
|
||||||
|
raise e
|
||||||
print type(e)
|
print type(e)
|
||||||
print dir(e)
|
print dir(e)
|
||||||
raise e
|
raise e
|
||||||
|
Loading…
Reference in New Issue
Block a user