1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 00:55:04 -05:00
curl/tests/data/test906

70 lines
1.6 KiB
Plaintext
Raw Normal View History

2013-09-22 15:53:29 -04:00
<testcase>
<info>
<keywords>
SMTP
SMTP AUTH NTLM
RFC4954
2013-09-22 15:53:29 -04:00
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
AUTH NTLM
REPLY AUTH 334 NTLM supported
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
2013-09-22 15:53:29 -04:00
REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated
</servercmd>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<features>
NTLM
!SSPI
2013-09-22 15:53:29 -04: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>
smtp://%HOSTIP:%SMTPPORT/906 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T -
2013-09-22 15:53:29 -04:00
</command>
<precheck>
chkhostname curlhost
</precheck>
2013-09-22 15:53:29 -04:00
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
EHLO 906
2013-09-22 15:53:29 -04:00
AUTH NTLM
TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
MAIL FROM:<sender@example.com>
RCPT TO:<recipient@example.com>
2013-09-22 15:53:29 -04:00
DATA
QUIT
</protocol>
<upload>
mail body
.
</upload>
</verify>
</testcase>