test936 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH NTLM
  7. SASL AUTH PLAIN
  8. SASL DOWNGRADE
  9. RFC4954
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <servercmd>
  16. AUTH NTLM PLAIN
  17. REPLY "AUTH NTLM" 334 NTLM supported
  18. REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 Rubbish
  19. REPLY * 501 AUTH exchange cancelled by client
  20. REPLY "AUTH PLAIN" 334 PLAIN supported
  21. REPLY dXNlcgB1c2VyAHNlY3JldA== 235 Authenticated
  22. </servercmd>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. smtp
  29. </server>
  30. <features>
  31. NTLM
  32. !SSPI
  33. </features>
  34. <name>
  35. SMTP NTLM authentication with SASL downgrade
  36. </name>
  37. <stdin>
  38. mail body
  39. </stdin>
  40. <setenv>
  41. # we force our own host name, in order to make the test machine independent
  42. CURL_GETHOSTNAME=curlhost
  43. # we try to use the LD_PRELOAD hack, if not a debug build
  44. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  45. </setenv>
  46. <command>
  47. smtp://%HOSTIP:%SMTPPORT/936 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
  48. </command>
  49. <precheck>
  50. chkhostname curlhost
  51. </precheck>
  52. </client>
  53. #
  54. # Verify data after the test has been "shot"
  55. <verify>
  56. <protocol>
  57. EHLO 936
  58. AUTH NTLM
  59. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  60. *
  61. AUTH PLAIN
  62. dXNlcgB1c2VyAHNlY3JldA==
  63. MAIL FROM:<sender@example.com>
  64. RCPT TO:<recipient@example.com>
  65. DATA
  66. QUIT
  67. </protocol>
  68. <upload>
  69. mail body
  70. .
  71. </upload>
  72. </verify>
  73. </testcase>