def _parse_auth_message(self, auth_message):
result = {}<EOL>has_matched = False<EOL>for regex in REGEXES_INVALID_USER:<EOL><INDENT>m = re.search(regex, auth_message)<EOL>if m and not has_matched:<EOL><INDENT>has_matched = True<EOL>result['<STR_LIT:username>'] = m.group('<STR_LIT:user>')<EOL>result['<STR_LIT>'] = m.group('<STR_LIT>')<EOL><DEDENT><DEDENT>for regex in REGEXES_INVALID_IP:<EOL><INDENT>m = re.search(regex, auth_message)<EOL>if m and not has_matched:<EOL><INDENT>has_matched = True<EOL>result['<STR_LIT>'] = m.group('<STR_LIT>')                        <EOL><DEDENT><DEDENT>for regex in REGEXES_IGNORE:<EOL><INDENT>m = re.search(regex, auth_message)<EOL>if m and not has_matched:<EOL><INDENT>has_matched = True<EOL><DEDENT><DEDENT>if not has_matched:<EOL><INDENT>sys.stderr.write("<STR_LIT>" % auth_message)<EOL><DEDENT>return result<EOL>
Parse a message to see if we have ip addresses or users that we care about

:param auth_message: The auth message to parse
:return: Result