• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4SMTP
5SASL
6SASL AUTH NTLM
7RFC4954
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<servercmd>
15AUTH NTLM
16REPLY AUTH 334 NTLM supported
17REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
18REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated
19</servercmd>
20</reply>
21
22#
23# Client-side
24<client>
25<server>
26smtp
27</server>
28<features>
29NTLM
30SSL
31!SSPI
32debug
33</features>
34 <name>
35SMTP NTLM authentication
36 </name>
37 <setenv>
38# we force our own host name, in order to make the test machine independent
39CURL_GETHOSTNAME=curlhost
40# we try to use the LD_PRELOAD hack, if not a debug build
41LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
42 </setenv>
43<stdin>
44mail body
45</stdin>
46 <command>
47smtp://%HOSTIP:%SMTPPORT/906 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T -
48</command>
49<precheck>
50chkhostname curlhost
51</precheck>
52</client>
53
54#
55# Verify data after the test has been "shot"
56<verify>
57<protocol>
58EHLO 906
59AUTH NTLM
60TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
61TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
62MAIL FROM:<sender@example.com>
63RCPT TO:<recipient@example.com>
64DATA
65QUIT
66</protocol>
67<upload>
68mail body
69.
70</upload>
71</verify>
72</testcase>
73