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