test849 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 dXJzZWwAa3VydAB4aXBqM3BsbXE= A002 NO Not authorized
  17. </servercmd>
  18. </reply>
  19. #
  20. # Client-side
  21. <client>
  22. <server>
  23. imap
  24. </server>
  25. <name>
  26. IMAP plain authentication with alternative authorization identity (Not authorized)
  27. </name>
  28. <command>
  29. 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u kurt:xipj3plmq --sasl-authzid ursel
  30. </command>
  31. </client>
  32. #
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. # 67 - CURLE_LOGIN_DENIED
  36. <errorcode>
  37. 67
  38. </errorcode>
  39. #
  40. # The multi interface considers a broken "CONNECT" as a prematurely broken
  41. # transfer and such a connection will not get a "LOGOUT"
  42. <protocol>
  43. A001 CAPABILITY
  44. A002 AUTHENTICATE PLAIN
  45. dXJzZWwAa3VydAB4aXBqM3BsbXE=
  46. </protocol>
  47. </verify>
  48. </testcase>