diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-22 20:53:29 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-22 20:53:29 +0100 |
commit | f81d1e16664976938be70379daf5abc35975909c (patch) | |
tree | 2c0e006eb80aca98a304cad49b10aa99e7443cfc /tests/data/test906 | |
parent | b71ed1fb3d3f07ef23566f7618f262569c19c11c (diff) |
tests: Added SMTP AUTH NTLM test
Diffstat (limited to 'tests/data/test906')
-rw-r--r-- | tests/data/test906 | 64 |
1 files changed, 64 insertions, 0 deletions
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 @@ +<testcase> +<info> +<keywords> +SMTP +SMTP AUTH NTLM +</keywords> +</info> + +# +# Server-side +<reply> +<servercmd> +AUTH NTLM +REPLY AUTH 334 NTLM supported +REPLY dGltIGI5MTNhNjAyYzdlZGE3YTQ5NWI0ZTZlNzMzNGQzODkw TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA +REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated +</servercmd> +</reply> + +# +# Client-side +<client> +<server> +smtp +</server> +<features> +NTLM +</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/user --mail-rcpt 906@example.com --mail-from 906@example.com -u testuser:testpass -T - +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +EHLO user
+AUTH NTLM
+TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
+TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
+MAIL FROM:<906@example.com>
+RCPT TO:<906@example.com>
+DATA
+QUIT
+</protocol> +<upload> +mail body
+.
+</upload> +</verify> +</testcase> |