xref: /curl/tests/data/test834 (revision 09437d8c)
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 AHVzZXIAc2VjcmV0 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
42SSL
43!SSPI
44</features>
45<name>
46IMAP NTLM authentication with SASL downgrade
47</name>
48<command>
49'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<protocol>
57A001 CAPABILITY
58A002 AUTHENTICATE NTLM
59TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
60*
61A003 AUTHENTICATE PLAIN
62AHVzZXIAc2VjcmV0
63A004 SELECT %TESTNUMBER
64A005 FETCH 1 BODY[]
65A006 LOGOUT
66</protocol>
67</verify>
68</testcase>
69