test921 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH NTLM
  7. SASL-IR
  8. RFC4954
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <servercmd>
  15. AUTH NTLM
  16. REPLY AUTH 334 TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  17. REPLY TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA== 235 Authenticated
  18. </servercmd>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. smtp
  25. </server>
  26. <features>
  27. NTLM
  28. !SSPI
  29. debug
  30. </features>
  31. <name>
  32. SMTP NTLM authentication with initial response
  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. <stdin>
  41. mail body
  42. </stdin>
  43. <command>
  44. smtp://%HOSTIP:%SMTPPORT/921 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass --sasl-ir -T -
  45. </command>
  46. <precheck>
  47. chkhostname curlhost
  48. </precheck>
  49. </client>
  50. #
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <protocol>
  54. EHLO 921
  55. AUTH NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  56. TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==
  57. MAIL FROM:<sender@example.com>
  58. RCPT TO:<recipient@example.com>
  59. DATA
  60. QUIT
  61. </protocol>
  62. <upload>
  63. mail body
  64. .
  65. </upload>
  66. </verify>
  67. </testcase>