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