def populate_user(self):
user = None<EOL>try:<EOL><INDENT>if self.attrs is not None:<EOL><INDENT>self._get_or_create_user(force_populate=True)<EOL><DEDENT>user = self._user<EOL><DEDENT>except ldap.LDAPError as e:<EOL><INDENT>results = ldap_error.send(self.backend.__class__,<EOL>context='<STR_LIT>', exception=e)<EOL>if len(results) == <NUM_LIT:0>:<EOL><INDENT>logger.warning(u"<STR_LIT>",<EOL>self._username, pprint.pformat(e))<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>logger.error(u"<STR_LIT>",<EOL>self._username, pprint.pformat(e))<EOL>logger.error('<STR_LIT>'.join(traceback.format_tb(sys.exc_info()[<NUM_LIT:2>])))<EOL>raise<EOL><DEDENT>return user<EOL>
Populates the Django user object using the default bind credentials.