diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-10-25 19:40:40 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-10-25 19:40:23 +0100 |
commit | 13db74ffc3543467bd7adf8d6870d5221f343e00 (patch) | |
tree | aea60c0c95019a5572b9e858c5204af974b08d12 /tests/data/test921 | |
parent | 98905aa2c56495c2a5521ada1a0ae49a42619892 (diff) |
tests: Added SMTP NTLM authentication with initial response test
Diffstat (limited to 'tests/data/test921')
-rw-r--r-- | tests/data/test921 | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/data/test921 b/tests/data/test921 new file mode 100644 index 000000000..d69f083d2 --- /dev/null +++ b/tests/data/test921 @@ -0,0 +1,66 @@ +<testcase> +<info> +<keywords> +SMTP +SMTP AUTH NTLM SASL-IR +RFC4954 +</keywords> +</info> + +# +# Server-side +<reply> +<servercmd> +AUTH NTLM +REPLY AUTH 334 TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA +REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated +</servercmd> +</reply> + +# +# Client-side +<client> +<server> +smtp +</server> +<features> +NTLM +</features> + <name> +SMTP NTLM authentication with initial response + </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/921 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass --sasl-ir -T - +</command> +<precheck> +chkhostname curlhost +</precheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol>
+EHLO 921
+AUTH NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
+TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
+MAIL FROM:<sender@example.com>
+RCPT TO:<recipient@example.com>
+DATA
+QUIT
+</protocol> +<upload> +mail body
+.
+</upload> +</verify> +</testcase> |