2013-12-22 17:30:50 -05:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
SMTP
|
2014-03-30 06:20:19 -04:00
|
|
|
SASL
|
2014-03-30 07:01:15 -04:00
|
|
|
SASL AUTH NTLM
|
|
|
|
SASL AUTH PLAIN
|
2014-03-15 06:13:13 -04:00
|
|
|
SASL DOWNGRADE
|
2013-12-22 17:30:50 -05:00
|
|
|
RFC4954
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<servercmd>
|
|
|
|
AUTH NTLM PLAIN
|
|
|
|
REPLY "AUTH NTLM" 334 NTLM supported
|
|
|
|
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 Rubbish
|
|
|
|
REPLY * 501 AUTH exchange cancelled by client
|
|
|
|
REPLY "AUTH PLAIN" 334 PLAIN supported
|
2019-04-18 16:54:35 -04:00
|
|
|
REPLY AHVzZXIAc2VjcmV0 235 Authenticated
|
2013-12-22 17:30:50 -05:00
|
|
|
</servercmd>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
smtp
|
|
|
|
</server>
|
|
|
|
<features>
|
|
|
|
NTLM
|
2019-12-29 15:23:25 -05:00
|
|
|
SSL
|
2013-12-28 15:22:22 -05:00
|
|
|
!SSPI
|
2013-12-22 17:30:50 -05:00
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
SMTP NTLM authentication with SASL downgrade
|
|
|
|
</name>
|
|
|
|
<stdin>
|
|
|
|
mail body
|
|
|
|
</stdin>
|
|
|
|
<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-12 11:38:26 -05:00
|
|
|
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
|
2013-12-22 17:30:50 -05:00
|
|
|
</command>
|
|
|
|
<precheck>
|
|
|
|
chkhostname curlhost
|
|
|
|
</precheck>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
EHLO %TESTNUMBER
|
2013-12-22 17:30:50 -05:00
|
|
|
AUTH NTLM
|
|
|
|
TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
|
|
|
*
|
|
|
|
AUTH PLAIN
|
2019-04-18 16:54:35 -04:00
|
|
|
AHVzZXIAc2VjcmV0
|
2013-12-22 17:30:50 -05:00
|
|
|
MAIL FROM:<sender@example.com>
|
|
|
|
RCPT TO:<recipient@example.com>
|
|
|
|
DATA
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<upload>
|
|
|
|
mail body
|
|
|
|
.
|
|
|
|
</upload>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|