'Returns a sanitized copy of raw LDAP results. This scrubs out
references, decodes utf8, normalizes DNs, etc.'

def _process_results(self, results):

    results = [r for r in results if (r[0] is not None)]
    results = _DeepStringCoder('utf-8').decode(results)
    results = [(r[0].lower(), r[1]) for r in results]
    result_dns = [result[0] for result in results]
    logger.debug((u"search_s('%s',    %d,    '%s')    returned    %d    objects:    %s" % (self.base_dn, self.scope, self.filterstr, len(result_dns), ';    '.join(result_dns))))
    return results
