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