2013-12-23 06:10:50 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
IMAP
|
2014-03-30 18:20:19 +08:00
|
|
|
SASL
|
2014-03-30 19:01:15 +08:00
|
|
|
SASL AUTH DIGEST-MD5
|
|
|
|
SASL AUTH PLAIN
|
2014-03-15 18:13:13 +08:00
|
|
|
SASL DOWNGRADE
|
2013-12-23 06:10:50 +08:00
|
|
|
RFC2831
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<servercmd>
|
|
|
|
AUTH DIGEST-MD5 PLAIN
|
|
|
|
REPLY "AUTHENTICATE DIGEST-MD5" + Rubbish
|
|
|
|
REPLY * A002 NO AUTH exchange cancelled by client
|
|
|
|
REPLY "AUTHENTICATE PLAIN" +
|
2019-04-19 04:54:35 +08:00
|
|
|
REPLY AHVzZXIAc2VjcmV0 A003 OK AUTHENTICATE completed
|
2013-12-23 06:10:50 +08:00
|
|
|
</servercmd>
|
|
|
|
<data>
|
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
|
|
|
yours sincerely
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
imap
|
|
|
|
</server>
|
|
|
|
<features>
|
2014-04-06 23:32:05 +08:00
|
|
|
!SSPI
|
2013-12-23 06:10:50 +08:00
|
|
|
debug
|
|
|
|
crypto
|
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
IMAP DIGEST-MD5 authentication with SASL downgrade
|
|
|
|
</name>
|
|
|
|
<command>
|
2018-07-31 19:12:18 +08:00
|
|
|
'imap://%HOSTIP:%IMAPPORT/835/;MAILINDEX=1' -u user:secret
|
2013-12-23 06:10:50 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
A001 CAPABILITY
|
|
|
|
A002 AUTHENTICATE DIGEST-MD5
|
|
|
|
*
|
|
|
|
A003 AUTHENTICATE PLAIN
|
2019-04-19 04:54:35 +08:00
|
|
|
AHVzZXIAc2VjcmV0
|
2013-12-23 06:10:50 +08:00
|
|
|
A004 SELECT 835
|
|
|
|
A005 FETCH 1 BODY[]
|
|
|
|
A006 LOGOUT
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|