2013-09-23 03:53:29 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
SMTP
|
2014-03-30 18:20:19 +08:00
|
|
|
SASL
|
2014-03-30 19:01:15 +08:00
|
|
|
SASL AUTH NTLM
|
2013-10-26 20:44:31 +08:00
|
|
|
RFC4954
|
2013-09-23 03:53:29 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<servercmd>
|
|
|
|
AUTH NTLM
|
|
|
|
REPLY AUTH 334 NTLM supported
|
2018-12-28 22:04:53 +08:00
|
|
|
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
|
|
|
REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated
|
2013-09-23 03:53:29 +08:00
|
|
|
</servercmd>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
smtp
|
|
|
|
</server>
|
|
|
|
<features>
|
|
|
|
NTLM
|
2019-12-30 04:23:25 +08:00
|
|
|
SSL
|
2013-12-29 04:22:22 +08:00
|
|
|
!SSPI
|
2014-06-12 01:12:48 +08:00
|
|
|
debug
|
2013-09-23 03:53:29 +08:00
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
SMTP NTLM authentication
|
|
|
|
</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>
|
|
|
|
<stdin>
|
|
|
|
mail body
|
|
|
|
</stdin>
|
|
|
|
<command>
|
2013-09-29 23:48:02 +08:00
|
|
|
smtp://%HOSTIP:%SMTPPORT/906 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T -
|
2013-09-23 03:53:29 +08:00
|
|
|
</command>
|
2013-10-16 04:31:14 +08:00
|
|
|
<precheck>
|
|
|
|
chkhostname curlhost
|
|
|
|
</precheck>
|
2013-09-23 03:53:29 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2013-09-29 16:53:49 +08:00
|
|
|
EHLO 906
|
2013-09-23 03:53:29 +08:00
|
|
|
AUTH NTLM
|
|
|
|
TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
2018-12-28 22:04:53 +08:00
|
|
|
TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
|
2013-09-29 23:48:02 +08:00
|
|
|
MAIL FROM:<sender@example.com>
|
|
|
|
RCPT TO:<recipient@example.com>
|
2013-09-23 03:53:29 +08:00
|
|
|
DATA
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<upload>
|
|
|
|
mail body
|
|
|
|
.
|
|
|
|
</upload>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|