From 820ed48a0088cda53e4566e6c094cc58eb2d785f Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 25 Oct 2013 19:22:30 +0100 Subject: tests: Added SMTP DIGEST-MD5 authentication test --- tests/data/test907 | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 tests/data/test907 (limited to 'tests/data/test907') diff --git a/tests/data/test907 b/tests/data/test907 new file mode 100644 index 000000000..8b398d992 --- /dev/null +++ b/tests/data/test907 @@ -0,0 +1,61 @@ + + + +SMTP +SMTP AUTH DIGEST-MD5 +RFC2831 +RFC4954 + + + +# +# Server-side + + +AUTH DIGEST-MD5 +REPLY AUTH 334 cmVhbG09ImN1cmwiLG5vbmNlPSI1MzAwZDE3YTFkNjk1YmQ0MTFlNGNkZjk2Zjk1NDhjMjNjZWQ2MTc1IixhbGdvcml0aG09bWQ1LXNlc3MscW9wPSJhdXRoIg== +REPLY dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjdXJsIixub25jZT0iNTMwMGQxN2ExZDY5NWJkNDExZTRjZGY5NmY5NTQ4YzIzY2VkNjE3NSIsY25vbmNlPSIxMjM0NTY3OCIsbmM9IjAwMDAwMDAxIixkaWdlc3QtdXJpPSJwb3AvY3VybCIscmVzcG9uc2U9YTA2OTE1YTA1ODA3ZDc0MTg0YTkxYjM2NjE2ZTZiOGM= 334 +REPLY 235 Authenticated + + + +# +# Client-side + + +smtp + + +debug +crypto + + +SMTP DIGEST-MD5 authentication + + +mail body + + +smtp://%HOSTIP:%SMTPPORT/907 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO 907 +AUTH DIGEST-MD5 +dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjdXJsIixub25jZT0iNTMwMGQxN2ExZDY5NWJkNDExZTRjZGY5NmY5NTQ4YzIzY2VkNjE3NSIsY25vbmNlPSIxMjM0NTY3OCIsbmM9IjAwMDAwMDAxIixkaWdlc3QtdXJpPSJwb3AvY3VybCIscmVzcG9uc2U9YTA2OTE1YTA1ODA3ZDc0MTg0YTkxYjM2NjE2ZTZiOGM= + +MAIL FROM: +RCPT TO: +DATA +QUIT + + +mail body +. + + + -- cgit v1.2.3