1<testcase>
2<info>
3<keywords>
4IMAP
5SASL
6SASL AUTH NTLM
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<servercmd>
14AUTH NTLM
15REPLY AUTHENTICATE +
16REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
17REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q= A002 OK AUTHENTICATE completed
18</servercmd>
19<data>
20From: me@somewhere
21To: fake@nowhere
22
23body
24
25--
26  yours sincerely
27</data>
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34imap
35</server>
36<features>
37NTLM
38!SSPI
39debug
40</features>
41 <name>
42IMAP NTLM authentication
43 </name>
44 <setenv>
45# we force our own host name, in order to make the test machine independent
46CURL_GETHOSTNAME=curlhost
47# we try to use the LD_PRELOAD hack, if not a debug build
48LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
49 </setenv>
50 <command>
51'imap://%HOSTIP:%IMAPPORT/822/;MAILINDEX=1' -u testuser:testpass
52</command>
53<precheck>
54chkhostname curlhost
55</precheck>
56</client>
57
58#
59# Verify data after the test has been "shot"
60<verify>
61<protocol>
62A001 CAPABILITY
63A002 AUTHENTICATE NTLM
64TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
65TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
66A003 SELECT 822
67A004 FETCH 1 BODY[]
68A005 LOGOUT
69</protocol>
70</verify>
71</testcase>
72