test954 954 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH PLAIN
  7. RFC4616
  8. RFC4%TESTNUMBER
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <servercmd>
  15. AUTH PLAIN
  16. REPLY AUTH 334 PLAIN supported
  17. REPLY dXJzZWwAa3VydAB4aXBqM3BsbXE= 501 Not authorized
  18. </servercmd>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. smtp
  25. </server>
  26. <name>
  27. SMTP plain authentication with alternative authorization identity (Not authorized)
  28. </name>
  29. <stdin>
  30. mail body
  31. </stdin>
  32. <command>
  33. smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u kurt:xipj3plmq --sasl-authzid ursel -T -
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. # 67 - CURLE_LOGIN_DENIED
  40. <errorcode>
  41. 67
  42. </errorcode>
  43. #
  44. # The multi interface considers a broken "CONNECT" as a prematurely broken
  45. # transfer and such a connection will not get a "QUIT"
  46. <protocol>
  47. EHLO %TESTNUMBER
  48. AUTH PLAIN
  49. dXJzZWwAa3VydAB4aXBqM3BsbXE=
  50. </protocol>
  51. </verify>
  52. </testcase>