'Populates the Django user object using the default bind credentials.'

def populate_user(self):

    user = None
    try:
        if (self.attrs is not None):
            self._get_or_create_user(force_populate=True)
        user = self._user
    except ldap.LDAPError as e:
        logger.warning(u'Caught    LDAPError    while    authenticating    %s:    %s', self._username, pprint.pformat(e))
    except Exception as e:
        logger.error(u'Caught    Exception    while    authenticating    %s:    %s', self._username, pprint.pformat(e))
        logger.error(''.join(traceback.format_tb(sys.exc_info()[2])))
        raise
    return user
