test936 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 AHVzZXIAc2VjcmV0 235 Authenticated
  22. </servercmd>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. smtp
  29. </server>
  30. <features>
  31. NTLM
  32. SSL
  33. !SSPI
  34. </features>
  35. <name>
  36. SMTP NTLM authentication with SASL downgrade
  37. </name>
  38. <stdin>
  39. mail body
  40. </stdin>
  41. <setenv>
  42. # we force our own host name, in order to make the test machine independent
  43. CURL_GETHOSTNAME=curlhost
  44. # we try to use the LD_PRELOAD hack, if not a debug build
  45. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  46. </setenv>
  47. <command>
  48. smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
  49. </command>
  50. <precheck>
  51. chkhostname curlhost
  52. </precheck>
  53. </client>
  54. #
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <protocol>
  58. EHLO %TESTNUMBER
  59. AUTH NTLM
  60. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  61. *
  62. AUTH PLAIN
  63. AHVzZXIAc2VjcmV0
  64. MAIL FROM:<sender@example.com>
  65. RCPT TO:<recipient@example.com>
  66. DATA
  67. QUIT
  68. </protocol>
  69. <upload>
  70. mail body
  71. .
  72. </upload>
  73. </verify>
  74. </testcase>