2
0

test834 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH NTLM
  7. SASL AUTH PLAIN
  8. SASL DOWNGRADE
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <servercmd>
  15. AUTH NTLM PLAIN
  16. REPLY "AUTHENTICATE NTLM" +
  17. REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
  18. REPLY * A002 NO AUTH exchange cancelled by client
  19. REPLY "AUTHENTICATE PLAIN" +
  20. REPLY dXNlcgB1c2VyAHNlY3JldA== A003 OK AUTHENTICATE completed
  21. </servercmd>
  22. <data>
  23. From: me@somewhere
  24. To: fake@nowhere
  25. body
  26. --
  27. yours sincerely
  28. </data>
  29. </reply>
  30. #
  31. # Client-side
  32. <client>
  33. <server>
  34. imap
  35. </server>
  36. <features>
  37. NTLM
  38. !SSPI
  39. </features>
  40. <name>
  41. IMAP NTLM authentication with SASL downgrade
  42. </name>
  43. <setenv>
  44. # we force our own host name, in order to make the test machine independent
  45. CURL_GETHOSTNAME=curlhost
  46. # we try to use the LD_PRELOAD hack, if not a debug build
  47. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  48. </setenv>
  49. <command>
  50. 'imap://%HOSTIP:%IMAPPORT/834/;UID=1' -u user:secret
  51. </command>
  52. <precheck>
  53. chkhostname curlhost
  54. </precheck>
  55. </client>
  56. #
  57. # Verify data after the test has been "shot"
  58. <verify>
  59. <protocol>
  60. A001 CAPABILITY
  61. A002 AUTHENTICATE NTLM
  62. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  63. *
  64. A003 AUTHENTICATE PLAIN
  65. dXNlcgB1c2VyAHNlY3JldA==
  66. A004 SELECT 834
  67. A005 FETCH 1 BODY[]
  68. A006 LOGOUT
  69. </protocol>
  70. </verify>
  71. </testcase>