mirror of
https://github.com/curl/curl.git
synced 2026-08-12 02:00:58 +03:00
imap/pop3/smtp: Added support for SASL authentication downgrades
Added support for downgrading the SASL authentication mechanism when the decoding of CRAM-MD5, DIGEST-MD5 and NTLM messages fails. This enhances the previously added support for graceful cancellation by allowing the client to retry a lesser SASL mechanism such as LOGIN or PLAIN, or even APOP / clear text (in the case of POP3 and IMAP) when supported by the server.
This commit is contained in:
parent
b7b126ee41
commit
48043f87b6
6 changed files with 105 additions and 6 deletions
|
|
@ -12,6 +12,7 @@ RFC2195
|
|||
<reply>
|
||||
<servercmd>
|
||||
AUTH CRAM-MD5
|
||||
CAPA LOGINDISABLED
|
||||
REPLY AUTHENTICATE + Rubbish
|
||||
REPLY * A002 NO AUTH exchange cancelled by client
|
||||
</servercmd>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ IMAP AUTH NTLM
|
|||
<reply>
|
||||
<servercmd>
|
||||
AUTH NTLM
|
||||
CAPA LOGINDISABLED
|
||||
REPLY AUTHENTICATE +
|
||||
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
|
||||
REPLY * A002 NO AUTH exchange cancelled by client
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ RFC2831
|
|||
<reply>
|
||||
<servercmd>
|
||||
AUTH DIGEST-MD5
|
||||
CAPA LOGINDISABLED
|
||||
REPLY AUTHENTICATE + Rubbish
|
||||
REPLY * A002 NO AUTH exchange cancelled by client
|
||||
</servercmd>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue