test880 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 dXNlcgB1c2VyAHNlY3JldA== +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. !SSPI
  41. </features>
  42. <name>
  43. POP3 NTLM authentication with SASL downgrade
  44. </name>
  45. <setenv>
  46. # we force our own host name, in order to make the test machine independent
  47. CURL_GETHOSTNAME=curlhost
  48. # we try to use the LD_PRELOAD hack, if not a debug build
  49. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  50. </setenv>
  51. <command>
  52. pop3://%HOSTIP:%POP3PORT/880 -u user:secret
  53. </command>
  54. <precheck>
  55. chkhostname curlhost
  56. </precheck>
  57. </client>
  58. #
  59. # Verify data after the test has been "shot"
  60. <verify>
  61. <protocol>
  62. CAPA
  63. AUTH NTLM
  64. TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  65. *
  66. AUTH PLAIN
  67. dXNlcgB1c2VyAHNlY3JldA==
  68. RETR 880
  69. QUIT
  70. </protocol>
  71. </verify>
  72. </testcase>