test834 1.3 KB

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