test933 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH NTLM
  7. SASL CANCELLATION
  8. RFC4954
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <servercmd>
  15. AUTH NTLM
  16. REPLY AUTH 334 NTLM supported
  17. REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 Rubbish
  18. REPLY * 501 AUTH exchange cancelled by client
  19. </servercmd>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. smtp
  26. </server>
  27. <features>
  28. NTLM
  29. !SSPI
  30. </features>
  31. <name>
  32. SMTP NTLM graceful cancellation
  33. </name>
  34. <setenv>
  35. # we force our own host name, in order to make the test machine independent
  36. CURL_GETHOSTNAME=curlhost
  37. # we try to use the LD_PRELOAD hack, if not a debug build
  38. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  39. </setenv>
  40. <command>
  41. smtp://%HOSTIP:%SMTPPORT/933 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T -
  42. </command>
  43. <precheck>
  44. chkhostname curlhost
  45. </precheck>
  46. </client>
  47. #
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. # 67 - CURLE_LOGIN_DENIED
  51. <errorcode>
  52. 67
  53. </errorcode>
  54. #
  55. # The multi interface considers a broken "CONNECT" as a prematurely broken
  56. # transfer and such a connection will not get a "QUIT"
  57. <protocol>
  58. EHLO 933
  59. AUTH NTLM
  60. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  61. *
  62. </protocol>
  63. </verify>
  64. </testcase>