tizen 2.3.1 release
[external/curl.git] / tests / data / test831
1 <testcase>
2 <info>
3 <keywords>
4 IMAP
5 SASL
6 SASL AUTH NTLM
7 SASL CANCELLATION
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 AUTH NTLM
16 CAPA LOGINDISABLED
17 REPLY AUTHENTICATE +
18 REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
19 REPLY * A002 NO AUTH exchange cancelled by client
20 </servercmd>
21 </reply>
22
23 #
24 # Client-side
25 <client>
26 <server>
27 imap
28 </server>
29 <features>
30 NTLM
31 !SSPI
32 </features>
33  <name>
34 IMAP NTLM graceful cancellation
35  </name>
36  <setenv>
37 # we force our own host name, in order to make the test machine independent
38 CURL_GETHOSTNAME=curlhost
39 # we try to use the LD_PRELOAD hack, if not a debug build
40 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
41  </setenv>
42  <command>
43 'imap://%HOSTIP:%IMAPPORT/831/;UID=1' -u testuser:testpass
44 </command>
45 <precheck>
46 chkhostname curlhost
47 </precheck>
48 </client>
49
50 #
51 # Verify data after the test has been "shot"
52 <verify>
53 # 67 - CURLE_LOGIN_DENIED
54 <errorcode>
55 67
56 </errorcode>
57 #
58 # The multi interface considers a broken "CONNECT" as a prematurely broken
59 # transfer and such a connection will not get a "LOGOUT"
60 <protocol>
61 A001 CAPABILITY\r
62 A002 AUTHENTICATE NTLM\r
63 TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
64 *\r
65 </protocol>
66 </verify>
67 </testcase>