42b30b137ee62a0d71742319f207da83151e0748
[platform/upstream/curl.git] / tests / data / test936
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH NTLM
6 SMTP AUTH PLAIN
7 SASL DOWNGRADE
8 RFC4954
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <servercmd>
16 AUTH NTLM PLAIN
17 REPLY "AUTH NTLM" 334 NTLM supported
18 REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 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 NTLM
33 !SSPI
34 </features>
35  <name>
36 SMTP NTLM authentication with SASL downgrade
37  </name>
38 <stdin>
39 mail body\r
40 </stdin>
41  <setenv>
42 # we force our own host name, in order to make the test machine independent
43 CURL_GETHOSTNAME=curlhost
44 # we try to use the LD_PRELOAD hack, if not a debug build
45 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
46  </setenv>
47  <command>
48 smtp://%HOSTIP:%SMTPPORT/936 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
49 </command>
50 <precheck>
51 chkhostname curlhost
52 </precheck>
53 </client>
54
55 #
56 # Verify data after the test has been "shot"
57 <verify>
58 <protocol>
59 EHLO 936\r
60 AUTH NTLM\r
61 TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
62 *\r
63 AUTH PLAIN\r
64 dXNlcgB1c2VyAHNlY3JldA==\r
65 MAIL FROM:<sender@example.com>\r
66 RCPT TO:<recipient@example.com>\r
67 DATA\r
68 QUIT\r
69 </protocol>
70 <upload>
71 mail body\r
72 .\r
73 </upload>
74 </verify>
75 </testcase>