2013-12-23 06:10:50 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
IMAP
|
2014-03-30 18:20:19 +08:00
|
|
|
SASL
|
2014-03-30 19:01:15 +08:00
|
|
|
SASL AUTH NTLM
|
|
|
|
SASL AUTH PLAIN
|
2014-03-15 18:13:13 +08:00
|
|
|
SASL DOWNGRADE
|
2013-12-23 06:10:50 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<servercmd>
|
|
|
|
AUTH NTLM PLAIN
|
|
|
|
REPLY "AUTHENTICATE NTLM" +
|
|
|
|
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
|
|
|
|
REPLY * A002 NO AUTH exchange cancelled by client
|
|
|
|
REPLY "AUTHENTICATE PLAIN" +
|
2019-04-19 04:54:35 +08:00
|
|
|
REPLY AHVzZXIAc2VjcmV0 A003 OK AUTHENTICATE completed
|
2013-12-23 06:10:50 +08:00
|
|
|
</servercmd>
|
|
|
|
<data>
|
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
|
|
|
yours sincerely
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
imap
|
|
|
|
</server>
|
|
|
|
<features>
|
|
|
|
NTLM
|
2019-12-30 04:23:25 +08:00
|
|
|
SSL
|
2013-12-29 04:22:22 +08:00
|
|
|
!SSPI
|
2013-12-23 06:10:50 +08:00
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
IMAP NTLM authentication with SASL downgrade
|
|
|
|
</name>
|
|
|
|
<setenv>
|
|
|
|
# we force our own host name, in order to make the test machine independent
|
|
|
|
CURL_GETHOSTNAME=curlhost
|
|
|
|
# we try to use the LD_PRELOAD hack, if not a debug build
|
|
|
|
LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
|
|
|
|
</setenv>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret
|
2013-12-23 06:10:50 +08:00
|
|
|
</command>
|
|
|
|
<precheck>
|
|
|
|
chkhostname curlhost
|
|
|
|
</precheck>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
A001 CAPABILITY
|
|
|
|
A002 AUTHENTICATE NTLM
|
|
|
|
TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
|
|
|
*
|
|
|
|
A003 AUTHENTICATE PLAIN
|
2019-04-19 04:54:35 +08:00
|
|
|
AHVzZXIAc2VjcmV0
|
2021-03-13 00:38:26 +08:00
|
|
|
A004 SELECT %TESTNUMBER
|
2013-12-23 06:10:50 +08:00
|
|
|
A005 FETCH 1 BODY[]
|
|
|
|
A006 LOGOUT
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|