baudehlo/Haraka — pull request #269 by smfreegard (2012-12-14 00:36:48+00:00)
Title: Support less common (but valid) ways of using AUTH PLAIN and LOGIN

Adds support for:

- bare AUTH PLAIN e.g.

AUTH PLAIN
334

- AUTH LOGIN

Found this due to a AUTH LOGIN dictionary attack which used the above format which caused the plugin to crash:

[CRIT] [A5842EE4-E296-4E96-8C04-0F56FDB03FAD] [core] Plugin auth/auth_proxy failed: TypeError: Cannot read property '0' of undefined at Plugin.exports.auth_login (auth/auth_base:144:26) at Plugin.exports.select_auth_method (auth/auth_base:118:25) at Plugin.exports.hook_unrecognized_command (auth/auth_base:30:21) at Object.plugins.run_next_hook (/usr/lib/node_modules/Haraka/plugins.js:307:28) at plugins.run_next_hook.callback (/usr/lib/node_modules/Haraka/plugins.js:284:21) at Plugin.
exports.hook_unrecognized_command (tls:104:16) at Object.plugins.run_next_hook (/usr/lib/node_modules/Haraka/plugins.js:307:28) at plugins.run_next_hook.callback (/usr/lib/node_modules/Haraka/plugins.js:284:21) at Plugin.exports.tarpit (tarpit:31:16) at Object.plugins.run_next_hook (/usr/lib/node_modules/Haraka/plugins.js:307:28)

- Exit with error status on logger.dump_logs(1)