• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4IMAP
5SASL
6SASL AUTH DIGEST-MD5
7SASL AUTH PLAIN
8SASL DOWNGRADE
9RFC2831
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<servercmd>
17AUTH DIGEST-MD5 PLAIN
18REPLY "AUTHENTICATE DIGEST-MD5" + Rubbish
19REPLY * A002 NO AUTH exchange cancelled by client
20REPLY "AUTHENTICATE PLAIN" +
21REPLY AHVzZXIAc2VjcmV0 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>
41!SSPI
42debug
43crypto
44</features>
45<name>
46IMAP DIGEST-MD5 authentication with SASL downgrade
47</name>
48<command>
49'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<protocol>
57A001 CAPABILITY
58A002 AUTHENTICATE DIGEST-MD5
59*
60A003 AUTHENTICATE PLAIN
61AHVzZXIAc2VjcmV0
62A004 SELECT %TESTNUMBER
63A005 FETCH 1 BODY[]
64A006 LOGOUT
65</protocol>
66</verify>
67</testcase>
68