test821 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH CRAM-MD5
  7. RFC2195
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. AUTH CRAM-MD5
  15. REPLY AUTHENTICATE + PDE5NzIuOTg3NjU0MzIxQGN1cmw+
  16. REPLY dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg== A002 OK AUTHENTICATE completed
  17. </servercmd>
  18. <data>
  19. From: me@somewhere
  20. To: fake@nowhere
  21. body
  22. --
  23. yours sincerely
  24. </data>
  25. </reply>
  26. #
  27. # Client-side
  28. <client>
  29. <server>
  30. imap
  31. </server>
  32. <features>
  33. crypto
  34. </features>
  35. <name>
  36. IMAP CRAM-MD5 authentication
  37. </name>
  38. <command>
  39. 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. A001 CAPABILITY
  47. A002 AUTHENTICATE CRAM-MD5
  48. dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg==
  49. A003 SELECT %TESTNUMBER
  50. A004 FETCH 1 BODY[]
  51. A005 LOGOUT
  52. </protocol>
  53. </verify>
  54. </testcase>