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