<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
IMAP
SASL
SASL AUTH PLAIN
RFC4616
</keywords>
</info>

# Server-side
<reply>
<servercmd>
AUTH PLAIN
REPLY AUTHENTICATE +
REPLY %b64[ursel%00kurt%00xipj3plmq]b64% A002 NO Not authorized
</servercmd>
</reply>

# Client-side
<client>
<server>
imap
</server>
<name>
IMAP plain auth with alt authorization identity (Not authorized)
</name>
<command>
'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u kurt:xipj3plmq --sasl-authzid ursel
</command>
</client>

# Verify data after the test has been "shot"
<verify>
# 67 - CURLE_LOGIN_DENIED
<errorcode>
67
</errorcode>
# The multi interface considers a broken "CONNECT" as a prematurely broken
# transfer and such a connection will not get a "LOGOUT"
<protocol crlf="yes">
A001 CAPABILITY
A002 AUTHENTICATE PLAIN
%b64[ursel%00kurt%00xipj3plmq]b64%
</protocol>
</verify>
</testcase>
