diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-05-18 15:58:46 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-18 15:58:46 +0000 |
| commit | 6e574b051840946aedbdda548f2b0e4bd54f4b9c (patch) | |
| tree | a14c634355af29268fda21e6697c4caa5755fa38 /src/mail/ngx_mail_parse.c | |
| parent | a948e1f3216cd529eefd11fb4548b3dcb16d9178 (diff) | |
| download | nginx-6e574b051840946aedbdda548f2b0e4bd54f4b9c.tar.gz nginx-6e574b051840946aedbdda548f2b0e4bd54f4b9c.tar.bz2 | |
r2496, r2749 merge:
compatibility with Microsoft's
AUTH LOGIN [base64 encoded user name ]
patch by Maxim Dounin
Diffstat (limited to 'src/mail/ngx_mail_parse.c')
| -rw-r--r-- | src/mail/ngx_mail_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mail/ngx_mail_parse.c b/src/mail/ngx_mail_parse.c index e558d2f48..693abfdc3 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; } |
