test826 765 B

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