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