test2032 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Basic auth
  7. HTTP NTLM auth
  8. NTLM
  9. flaky
  10. timing-dependent
  11. </keywords>
  12. </info>
  13. # Server-side
  14. <reply>
  15. <!-- Basic auth -->
  16. <data100>
  17. HTTP/1.1 401 Need Basic or NTLM auth
  18. Server: Microsoft-IIS/5.0
  19. Content-Type: text/html; charset=iso-8859-1
  20. Content-Length: 29
  21. WWW-Authenticate: NTLM
  22. WWW-Authenticate: Basic realm="testrealm"
  23. This is a bad password page!
  24. </data100>
  25. <!-- NTLM auth -->
  26. <data200>
  27. HTTP/1.1 401 Need Basic or NTLM auth (2)
  28. Server: Microsoft-IIS/5.0
  29. Content-Type: text/html; charset=iso-8859-1
  30. Content-Length: 27
  31. WWW-Authenticate: NTLM
  32. WWW-Authenticate: Basic realm="testrealm"
  33. This is not the real page!
  34. </data200>
  35. <data1201>
  36. HTTP/1.1 401 NTLM intermediate (2)
  37. Server: Microsoft-IIS/5.0
  38. Content-Type: text/html; charset=iso-8859-1
  39. Content-Length: 33
  40. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  41. This is still not the real page!
  42. </data1201>
  43. <data1202>
  44. HTTP/1.1 200 Things are fine in server land
  45. Server: Microsoft-IIS/5.0
  46. Content-Type: text/html; charset=iso-8859-1
  47. Content-Length: 32
  48. Finally, this is the real page!
  49. </data1202>
  50. <datacheck>
  51. Data connection 0: 228
  52. Data connection 1: 228
  53. Data connection 2: 402
  54. </datacheck>
  55. </reply>
  56. # Client-side
  57. <client>
  58. <features>
  59. NTLM
  60. SSL
  61. !SSPI
  62. </features>
  63. <server>
  64. http
  65. </server>
  66. <tool>
  67. libntlmconnect
  68. </tool>
  69. <name>
  70. NTLM connection mapping
  71. </name>
  72. <command>
  73. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  74. </command>
  75. </client>
  76. # Verify data after the test has been "shot"
  77. <verify>
  78. <protocol>
  79. GET /%TESTNUMBER0100 HTTP/1.1
  80. Host: %HOSTIP:%HTTPPORT
  81. Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
  82. Accept: */*
  83. GET /%TESTNUMBER0100 HTTP/1.1
  84. Host: %HOSTIP:%HTTPPORT
  85. Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
  86. Accept: */*
  87. GET /%TESTNUMBER0200 HTTP/1.1
  88. Host: %HOSTIP:%HTTPPORT
  89. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  90. Accept: */*
  91. GET /%TESTNUMBER0200 HTTP/1.1
  92. Host: %HOSTIP:%HTTPPORT
  93. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
  94. Accept: */*
  95. </protocol>
  96. </verify>
  97. </testcase>