From 09f6cd5fa930eb22ace086ecb71571ffb5071080 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 9 Feb 2009 12:03:55 +0000 Subject: compatibility with Microsoft's AUTH LOGIN [base64 encoded user name ] patch by Maxim Dounin --- src/mail/ngx_mail_parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mail/ngx_mail_parse.c') diff --git a/src/mail/ngx_mail_parse.c b/src/mail/ngx_mail_parse.c index a2d3f48ad..67f4d5edf 100644 --- a/src/mail/ngx_mail_parse.c +++ b/src/mail/ngx_mail_parse.c @@ -848,6 +848,10 @@ ngx_mail_auth_parse(ngx_mail_session_t *s, ngx_connection_t *c) return NGX_MAIL_AUTH_LOGIN; } + if (s->args.nelts == 2) { + return NGX_MAIL_AUTH_LOGIN_USERNAME; + } + return NGX_MAIL_PARSE_INVALID_COMMAND; } -- cgit