test937 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH DIGEST-MD5
  7. SASL AUTH PLAIN
  8. SASL DOWNGRADE
  9. RFC2831
  10. RFC4954
  11. </keywords>
  12. </info>
  13. #
  14. # Server-side
  15. <reply>
  16. <servercmd>
  17. AUTH DIGEST-MD5 PLAIN
  18. REPLY "AUTH DIGEST-MD5" 334 Rubbish
  19. REPLY * 501 AUTH exchange cancelled by client
  20. REPLY "AUTH PLAIN" 334 PLAIN supported
  21. REPLY AHVzZXIAc2VjcmV0 235 Authenticated
  22. </servercmd>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. smtp
  29. </server>
  30. <features>
  31. !SSPI
  32. debug
  33. crypto
  34. </features>
  35. <name>
  36. SMTP DIGEST-MD5 authentication with SASL downgrade
  37. </name>
  38. <stdin>
  39. mail body
  40. </stdin>
  41. <command>
  42. smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
  43. </command>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. EHLO %TESTNUMBER
  50. AUTH DIGEST-MD5
  51. *
  52. AUTH PLAIN
  53. AHVzZXIAc2VjcmV0
  54. MAIL FROM:<sender@example.com>
  55. RCPT TO:<recipient@example.com>
  56. DATA
  57. QUIT
  58. </protocol>
  59. <upload>
  60. mail body
  61. .
  62. </upload>
  63. </verify>
  64. </testcase>