diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-10-19 13:17:25 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-10-19 13:17:25 +0100 |
commit | 39f4e4fafae3765ee1d0e76cde5217aef4381f77 (patch) | |
tree | 23f1f895f9ffa1b6d8d803094e77c0dabf7f13a5 /tests/data/test868 | |
parent | 587811c0a67af4c935835df4bcd424910f604948 (diff) |
tests: Added POP3 NTLM authentication test
Diffstat (limited to 'tests/data/test868')
-rw-r--r-- | tests/data/test868 | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/data/test868 b/tests/data/test868 new file mode 100644 index 000000000..a2d09d012 --- /dev/null +++ b/tests/data/test868 @@ -0,0 +1,69 @@ +<testcase> +<info> +<keywords> +POP3 +POP3 AUTH NTLM +RFC1734 +RFC5034 +</keywords> +</info> + +# +# Server-side +<reply> +<servercmd> +AUTH NTLM +REPLY AUTH + +REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA +REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= +OK Login successful +</servercmd> +<data> +From: me@somewhere
+To: fake@nowhere
+
+body
+
+--
+ yours sincerely
+</data> +</reply> + +# +# Client-side +<client> +<server> +pop3 +</server> +<features> +NTLM +</features> + <name> +POP3 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> + <command> +pop3://%HOSTIP:%POP3PORT/868 -u testuser:testpass +</command> +<precheck> +chkhostname curlhost +</precheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +CAPA
+AUTH NTLM
+TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
+TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
+RETR 868
+QUIT
+</protocol> +</verify> +</testcase> |