1<testcase> 2<info> 3<keywords> 4IMAP 5IMAP AUTH DIGEST-MD5 6IMAP AUTH PLAIN 7SASL DOWNGRADE 8RFC2831 9</keywords> 10</info> 11 12# 13# Server-side 14<reply> 15<servercmd> 16AUTH DIGEST-MD5 PLAIN 17REPLY "AUTHENTICATE DIGEST-MD5" + Rubbish 18REPLY * A002 NO AUTH exchange cancelled by client 19REPLY "AUTHENTICATE PLAIN" + 20REPLY dXNlcgB1c2VyAHNlY3JldA== A003 OK AUTHENTICATE completed 21</servercmd> 22<data> 23From: me@somewhere 24To: fake@nowhere 25 26body 27 28-- 29 yours sincerely 30</data> 31</reply> 32 33# 34# Client-side 35<client> 36<server> 37imap 38</server> 39<features> 40debug 41crypto 42</features> 43 <name> 44IMAP DIGEST-MD5 authentication with SASL downgrade 45 </name> 46 <command> 47'imap://%HOSTIP:%IMAPPORT/835/;UID=1' -u user:secret 48</command> 49</client> 50 51# 52# Verify data after the test has been "shot" 53<verify> 54<protocol> 55A001 CAPABILITY 56A002 AUTHENTICATE DIGEST-MD5 57* 58A003 AUTHENTICATE PLAIN 59dXNlcgB1c2VyAHNlY3JldA== 60A004 SELECT 835 61A005 FETCH 1 BODY[] 62A006 LOGOUT 63</protocol> 64</verify> 65</testcase> 66