From f81d1e16664976938be70379daf5abc35975909c Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 22 Sep 2013 20:53:29 +0100 Subject: tests: Added SMTP AUTH NTLM test --- tests/data/test906 | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/data/test906 (limited to 'tests/data/test906') diff --git a/tests/data/test906 b/tests/data/test906 new file mode 100644 index 000000000..59ed5a16b --- /dev/null +++ b/tests/data/test906 @@ -0,0 +1,64 @@ + + + +SMTP +SMTP AUTH NTLM + + + +# +# Server-side + + +AUTH NTLM +REPLY AUTH 334 NTLM supported +REPLY dGltIGI5MTNhNjAyYzdlZGE3YTQ5NWI0ZTZlNzMzNGQzODkw TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA +REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated + + + +# +# Client-side + + +smtp + + +NTLM + + +SMTP NTLM authentication + + +# 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 + + +mail body + + +smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 906@example.com --mail-from 906@example.com -u testuser:testpass -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO user +AUTH NTLM +TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= +TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= +MAIL FROM:<906@example.com> +RCPT TO:<906@example.com> +DATA +QUIT + + +mail body +. + + + -- cgit v1.2.3