test835 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH DIGEST-MD5
  7. SASL AUTH PLAIN
  8. SASL DOWNGRADE
  9. RFC2831
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <servercmd>
  16. AUTH DIGEST-MD5 PLAIN
  17. REPLY "AUTHENTICATE DIGEST-MD5" + 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. !SSPI
  38. debug
  39. crypto
  40. </features>
  41. <name>
  42. IMAP DIGEST-MD5 authentication with SASL downgrade
  43. </name>
  44. <command>
  45. 'imap://%HOSTIP:%IMAPPORT/835/;UID=1' -u user:secret
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <protocol>
  52. A001 CAPABILITY
  53. A002 AUTHENTICATE DIGEST-MD5
  54. *
  55. A003 AUTHENTICATE PLAIN
  56. dXNlcgB1c2VyAHNlY3JldA==
  57. A004 SELECT 835
  58. A005 FETCH 1 BODY[]
  59. A006 LOGOUT
  60. </protocol>
  61. </verify>
  62. </testcase>