44893a33adc67bf5a4f5e751c2955b165eaabcc6
[platform/upstream/curl.git] / tests / data / test826
1 <testcase>
2 <info>
3 <keywords>
4 IMAP
5 IMAP AUTH LOGIN
6 SASL-IR
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <servercmd>
14 AUTH LOGIN
15 CAPA SASL-IR
16 REPLY AUTHENTICATE + UGFzc3dvcmQ6
17 REPLY c2VjcmV0 A002 OK AUTHENTICATE completed
18 </servercmd>
19 <data>
20 From: me@somewhere\r
21 To: fake@nowhere\r
22 \r
23 body\r
24 \r
25 --\r
26   yours sincerely\r
27 </data>
28 </reply>
29
30 #
31 # Client-side
32 <client>
33 <server>
34 imap
35 </server>
36  <name>
37 IMAP login authentication with initial response
38  </name>
39  <command>
40 'imap://%HOSTIP:%IMAPPORT/826/;UID=1' -u user:secret
41 </command>
42 </client>
43
44 #
45 # Verify data after the test has been "shot"
46 <verify>
47 <protocol>
48 A001 CAPABILITY\r
49 A002 AUTHENTICATE LOGIN dXNlcg==\r
50 c2VjcmV0\r
51 A003 SELECT 826\r
52 A004 FETCH 1 BODY[]\r
53 A005 LOGOUT\r
54 </protocol>
55 </verify>
56 </testcase>