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