diff options
author | Tomas Babej <tbabej@redhat.com> | 2013-08-06 12:15:22 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-08-29 14:05:20 +0200 |
commit | a3d489443c85629aa176df048c6b3505a7ee4586 (patch) | |
tree | e360fff4fc80bded28673e143238b553a4ef2973 /ipaserver/dcerpc.py | |
parent | 7c66912824fbc2a4a2d1daf603b204fd7321bd8f (diff) | |
download | freeipa-a3d489443c85629aa176df048c6b3505a7ee4586.tar.gz freeipa-a3d489443c85629aa176df048c6b3505a7ee4586.tar.xz freeipa-a3d489443c85629aa176df048c6b3505a7ee4586.zip |
Log proper error message when defaultNamingContext not found
Diffstat (limited to 'ipaserver/dcerpc.py')
-rw-r--r-- | ipaserver/dcerpc.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py index 4b87a9e8c..a27a64d2f 100644 --- a/ipaserver/dcerpc.py +++ b/ipaserver/dcerpc.py @@ -790,9 +790,15 @@ class TrustDomainInstance(object): root_logger.error( "LDAP error when connecting to %(host)s: %(error)s" % dict(host=unicode(result.pdc_name), error=str(e))) + except KeyError, e: + root_logger.error("KeyError: {err}, LDAP entry from {host} " + "returned malformed. Your DNS might be " + "misconfigured." + .format(host=unicode(result.pdc_name), + err=unicode(e))) if search_result: - self.info['sid'] = self.parse_naming_context(search_result) + self.info['sid'] = self.parse_naming_context(search_result) return True def parse_naming_context(self, context): |