1<testcase> 2<info> 3<keywords> 4IMAP 5SASL 6SASL AUTH CRAM-MD5 7SASL AUTH PLAIN 8SASL DOWNGRADE 9RFC2195 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<servercmd> 17AUTH CRAM-MD5 PLAIN 18REPLY "AUTHENTICATE CRAM-MD5" + Rubbish 19REPLY * A002 NO AUTH exchange cancelled by client 20REPLY "AUTHENTICATE PLAIN" + 21REPLY dXNlcgB1c2VyAHNlY3JldA== A003 OK AUTHENTICATE completed 22</servercmd> 23<data> 24From: me@somewhere 25To: fake@nowhere 26 27body 28 29-- 30 yours sincerely 31</data> 32</reply> 33 34# 35# Client-side 36<client> 37<server> 38imap 39</server> 40<features> 41crypto 42</features> 43 <name> 44IMAP CRAM-MD5 authentication with SASL downgrade 45 </name> 46 <command> 47'imap://%HOSTIP:%IMAPPORT/833/;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 CRAM-MD5 57* 58A003 AUTHENTICATE PLAIN 59dXNlcgB1c2VyAHNlY3JldA== 60A004 SELECT 833 61A005 FETCH 1 BODY[] 62A006 LOGOUT 63</protocol> 64</verify> 65</testcase> 66