46dbc256393a3c6cb57fc03d09284dd0a5ca872b
[platform/upstream/curl.git] / tests / data / test937
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH DIGEST-MD5
6 SMTP AUTH PLAIN
7 SASL DOWNGRADE
8 RFC2831
9 RFC4954
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <servercmd>
17 AUTH DIGEST-MD5 PLAIN
18 REPLY "AUTH DIGEST-MD5" 334 Rubbish
19 REPLY * 501 AUTH exchange cancelled by client
20 REPLY "AUTH PLAIN" 334 PLAIN supported
21 REPLY dXNlcgB1c2VyAHNlY3JldA== 235 Authenticated
22 </servercmd>
23 </reply>
24
25 #
26 # Client-side
27 <client>
28 <server>
29 smtp
30 </server>
31 <features>
32 debug
33 crypto
34 </features>
35  <name>
36 SMTP DIGEST-MD5 authentication with SASL downgrade
37  </name>
38 <stdin>
39 mail body\r
40 </stdin>
41  <command>
42 smtp://%HOSTIP:%SMTPPORT/937 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <protocol>
50 EHLO 937\r
51 AUTH DIGEST-MD5\r
52 *\r
53 AUTH PLAIN\r
54 dXNlcgB1c2VyAHNlY3JldA==\r
55 MAIL FROM:<sender@example.com>\r
56 RCPT TO:<recipient@example.com>\r
57 DATA\r
58 QUIT\r
59 </protocol>
60 <upload>
61 mail body\r
62 .\r
63 </upload>
64 </verify>
65 </testcase>