test880 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. POP3
  5. SASL
  6. SASL AUTH NTLM
  7. SASL AUTH PLAIN
  8. SASL DOWNGRADE
  9. RFC1734
  10. RFC5034
  11. </keywords>
  12. </info>
  13. #
  14. # Server-side
  15. <reply>
  16. <servercmd>
  17. AUTH NTLM PLAIN
  18. REPLY "AUTH NTLM" +
  19. REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
  20. REPLY * -ERR AUTH exchange cancelled by client
  21. REPLY "AUTH PLAIN" +
  22. REPLY AHVzZXIAc2VjcmV0 +OK Login successful
  23. </servercmd>
  24. <data>
  25. From: me@somewhere
  26. To: fake@nowhere
  27. body
  28. --
  29. yours sincerely
  30. </data>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <server>
  36. pop3
  37. </server>
  38. <features>
  39. NTLM
  40. SSL
  41. !SSPI
  42. </features>
  43. <name>
  44. POP3 NTLM authentication with SASL downgrade
  45. </name>
  46. <setenv>
  47. # we force our own host name, in order to make the test machine independent
  48. CURL_GETHOSTNAME=curlhost
  49. # we try to use the LD_PRELOAD hack, if not a debug build
  50. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  51. </setenv>
  52. <command>
  53. pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret
  54. </command>
  55. <precheck>
  56. chkhostname curlhost
  57. </precheck>
  58. </client>
  59. #
  60. # Verify data after the test has been "shot"
  61. <verify>
  62. <protocol>
  63. CAPA
  64. AUTH NTLM
  65. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  66. *
  67. AUTH PLAIN
  68. AHVzZXIAc2VjcmV0
  69. RETR %TESTNUMBER
  70. QUIT
  71. </protocol>
  72. </verify>
  73. </testcase>