48043f87b6
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.
56 lines
822 B
Plaintext
56 lines
822 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
IMAP
|
|
IMAP AUTH DIGEST-MD5
|
|
RFC2831
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
AUTH DIGEST-MD5
|
|
CAPA LOGINDISABLED
|
|
REPLY AUTHENTICATE + Rubbish
|
|
REPLY * A002 NO AUTH exchange cancelled by client
|
|
</servercmd>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
imap
|
|
</server>
|
|
<features>
|
|
debug
|
|
crypto
|
|
</features>
|
|
<name>
|
|
IMAP DIGEST-MD5 graceful cancellation
|
|
</name>
|
|
<command>
|
|
'imap://%HOSTIP:%IMAPPORT/832/;UID=1' -u user:secret
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# 67 - CURLE_LOGIN_DENIED
|
|
<errorcode>
|
|
67
|
|
</errorcode>
|
|
#
|
|
# The multi interface considers a broken "CONNECT" as a prematurely broken
|
|
# transfer and such a connection will not get a "LOGOUT"
|
|
<protocol>
|
|
A001 CAPABILITY
|
|
A002 AUTHENTICATE DIGEST-MD5
|
|
*
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|