def format_results(self, results):
        if not results:
            return None
        userobj = results[0][1]

        keymap = self.config.get('KEY_MAP')
        if keymap:
            return {key:scalar(userobj.get(value)) for key, value in keymap.items()}
        else:
            return {key:scalar(value) for key, value in userobj.items()}
Format the ldap results object into somthing that is reasonable
dataset/ETHPy150Open ContinuumIO/flask-ldap-login/flask_ldap_login/__init__.py/LDAPLoginManager.format_results