xref: /curl/tests/data/test936 (revision 09437d8c)
1<testcase>
2<info>
3<keywords>
4SMTP
5SASL
6SASL AUTH NTLM
7SASL AUTH PLAIN
8SASL DOWNGRADE
9RFC4954
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<servercmd>
17AUTH NTLM PLAIN
18REPLY "AUTH NTLM" 334 NTLM supported
19REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 Rubbish
20REPLY * 501 AUTH exchange cancelled by client
21REPLY "AUTH PLAIN" 334 PLAIN supported
22REPLY AHVzZXIAc2VjcmV0 235 Authenticated
23</servercmd>
24</reply>
25
26#
27# Client-side
28<client>
29<server>
30smtp
31</server>
32<features>
33NTLM
34SSL
35!SSPI
36</features>
37<name>
38SMTP NTLM authentication with SASL downgrade
39</name>
40<stdin>
41mail body
42</stdin>
43<command>
44smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --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>
52EHLO %TESTNUMBER
53AUTH NTLM
54TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
55*
56AUTH PLAIN
57AHVzZXIAc2VjcmV0
58MAIL FROM:<sender@example.com>
59RCPT TO:<recipient@example.com>
60DATA
61QUIT
62</protocol>
63<upload>
64mail body
65.
66</upload>
67</verify>
68</testcase>
69