test879 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. POP3
  5. SASL
  6. SASL AUTH CRAM-MD5
  7. SASL AUTH PLAIN
  8. SASL DOWNGRADE
  9. RFC1734
  10. RFC2195
  11. RFC5034
  12. </keywords>
  13. </info>
  14. #
  15. # Server-side
  16. <reply>
  17. <servercmd>
  18. AUTH CRAM-MD5 PLAIN
  19. REPLY "AUTH CRAM-MD5" + Rubbish
  20. REPLY * -ERR AUTH exchange cancelled by client
  21. REPLY "AUTH PLAIN" +
  22. REPLY AHVzZXIAc2VjcmV0 +OK Login successful
  23. </servercmd>
  24. <data>
  25. From: me@somewhere
  26. To: fake@nowhere
  27. body
  28. --
  29. yours sincerely
  30. </data>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <server>
  36. pop3
  37. </server>
  38. <features>
  39. crypto
  40. </features>
  41. <name>
  42. POP3 CRAM-MD5 authentication with SASL downgrade
  43. </name>
  44. <command>
  45. pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <protocol>
  52. CAPA
  53. AUTH CRAM-MD5
  54. *
  55. AUTH PLAIN
  56. AHVzZXIAc2VjcmV0
  57. RETR %TESTNUMBER
  58. QUIT
  59. </protocol>
  60. </verify>
  61. </testcase>