From 48cd1292e21f3d9bd71e73c94ccfe61d1222485f Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 22 Dec 2013 22:10:50 +0000 Subject: tests: Added IMAP SASL downgrade tests --- tests/data/test834 | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tests/data/test834 (limited to 'tests/data/test834') diff --git a/tests/data/test834 b/tests/data/test834 new file mode 100644 index 000000000..f90c3b491 --- /dev/null +++ b/tests/data/test834 @@ -0,0 +1,72 @@ + + + +IMAP +IMAP AUTH NTLM SASL DOWNGRADE + + + +# +# Server-side + + +AUTH NTLM PLAIN +REPLY "AUTHENTICATE NTLM" + +REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish +REPLY * A002 NO AUTH exchange cancelled by client +REPLY "AUTHENTICATE PLAIN" + +REPLY dXNlcgB1c2VyAHNlY3JldA== A003 OK AUTHENTICATE completed + + +From: me@somewhere +To: fake@nowhere + +body + +-- + yours sincerely + + + +# +# Client-side + + +imap + + +NTLM + + +IMAP NTLM authentication with SASL downgrade + + +# 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 + + +'imap://%HOSTIP:%IMAPPORT/834/;UID=1' -u user:secret + + +chkhostname curlhost + + + +# +# Verify data after the test has been "shot" + + +A001 CAPABILITY +A002 AUTHENTICATE NTLM +TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= +* +A003 AUTHENTICATE PLAIN +dXNlcgB1c2VyAHNlY3JldA== +A004 SELECT 834 +A005 FETCH 1 BODY[] +A006 LOGOUT + + + -- cgit v1.2.3