test831 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH NTLM
  7. SASL CANCELLATION
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. AUTH NTLM
  15. CAPA LOGINDISABLED
  16. REPLY AUTHENTICATE +
  17. REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
  18. REPLY * A002 NO AUTH exchange cancelled by client
  19. </servercmd>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. imap
  26. </server>
  27. <features>
  28. NTLM
  29. !SSPI
  30. </features>
  31. <name>
  32. IMAP 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. 'imap://%HOSTIP:%IMAPPORT/831/;UID=1' -u testuser:testpass
  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 "LOGOUT"
  57. <protocol>
  58. A001 CAPABILITY
  59. A002 AUTHENTICATE NTLM
  60. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  61. *
  62. </protocol>
  63. </verify>
  64. </testcase>