xref: /curl/tests/data/test849 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4IMAP
5SASL
6SASL AUTH PLAIN
7RFC4616
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<servercmd>
15AUTH PLAIN
16REPLY AUTHENTICATE +
17REPLY dXJzZWwAa3VydAB4aXBqM3BsbXE= A002 NO Not authorized
18</servercmd>
19</reply>
20
21#
22# Client-side
23<client>
24<server>
25imap
26</server>
27<name>
28IMAP plain authentication with alternative authorization identity (Not authorized)
29</name>
30<command>
31'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u kurt:xipj3plmq --sasl-authzid ursel
32</command>
33</client>
34
35#
36# Verify data after the test has been "shot"
37<verify>
38# 67 - CURLE_LOGIN_DENIED
39<errorcode>
4067
41</errorcode>
42#
43# The multi interface considers a broken "CONNECT" as a prematurely broken
44# transfer and such a connection will not get a "LOGOUT"
45<protocol>
46A001 CAPABILITY
47A002 AUTHENTICATE PLAIN
48dXJzZWwAa3VydAB4aXBqM3BsbXE=
49</protocol>
50</verify>
51</testcase>
52