diff options
Diffstat (limited to 'ipaserver')
-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): |