test848 834 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH PLAIN
  7. RFC4616
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. AUTH PLAIN
  15. REPLY AUTHENTICATE +
  16. REPLY c2hhcmVkLW1haWxib3gAdXNlcgBzZWNyZXQ= 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. <name>
  33. IMAP plain authentication with alternative authorization identity
  34. </name>
  35. <command>
  36. 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret --sasl-authzid shared-mailbox
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. A001 CAPABILITY
  44. A002 AUTHENTICATE PLAIN
  45. c2hhcmVkLW1haWxib3gAdXNlcgBzZWNyZXQ=
  46. A003 SELECT %TESTNUMBER
  47. A004 FETCH 1 BODY[]
  48. A005 LOGOUT
  49. </protocol>
  50. </verify>
  51. </testcase>