xref: /curl/tests/data/test954 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4SMTP
5SASL
6SASL AUTH PLAIN
7RFC4616
8RFC4%TESTNUMBER
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<servercmd>
16AUTH PLAIN
17REPLY AUTH 334 PLAIN supported
18REPLY dXJzZWwAa3VydAB4aXBqM3BsbXE= 501 Not authorized
19</servercmd>
20</reply>
21
22#
23# Client-side
24<client>
25<server>
26smtp
27</server>
28<name>
29SMTP plain authentication with alternative authorization identity (Not authorized)
30</name>
31<stdin>
32mail body
33</stdin>
34<command>
35smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u kurt:xipj3plmq --sasl-authzid ursel -T -
36</command>
37</client>
38
39#
40# Verify data after the test has been "shot"
41<verify>
42# 67 - CURLE_LOGIN_DENIED
43<errorcode>
4467
45</errorcode>
46#
47# The multi interface considers a broken "CONNECT" as a prematurely broken
48# transfer and such a connection will not get a "QUIT"
49<protocol>
50EHLO %TESTNUMBER
51AUTH PLAIN
52dXJzZWwAa3VydAB4aXBqM3BsbXE=
53</protocol>
54</verify>
55</testcase>
56