test2031 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP NTLM auth
  7. NTLM
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <!-- First request has NTLM auth, wrong password -->
  13. <data100>
  14. HTTP/1.1 401 Need NTLM auth
  15. Server: Microsoft-IIS/5.0
  16. Content-Type: text/html; charset=iso-8859-1
  17. Content-Length: 27
  18. WWW-Authenticate: NTLM
  19. This is not the real page!
  20. </data100>
  21. <data1101>
  22. HTTP/1.1 401 NTLM intermediate
  23. Server: Microsoft-IIS/5.0
  24. Content-Type: text/html; charset=iso-8859-1
  25. Content-Length: 33
  26. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  27. This is still not the real page!
  28. </data1101>
  29. <data1102>
  30. HTTP/1.1 401 Sorry wrong password
  31. Server: Microsoft-IIS/5.0
  32. Content-Type: text/html; charset=iso-8859-1
  33. Content-Length: 29
  34. WWW-Authenticate: NTLM
  35. This is a bad password page!
  36. </data1102>
  37. <!-- Second request has NTLM auth, right password -->
  38. <data200>
  39. HTTP/1.1 401 Need NTLM auth (2)
  40. Server: Microsoft-IIS/5.0
  41. Content-Type: text/html; charset=iso-8859-1
  42. Content-Length: 27
  43. WWW-Authenticate: NTLM
  44. This is not the real page!
  45. </data200>
  46. <data1201>
  47. HTTP/1.1 401 NTLM intermediate (2)
  48. Server: Microsoft-IIS/5.0
  49. Content-Type: text/html; charset=iso-8859-1
  50. Content-Length: 33
  51. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  52. This is still not the real page!
  53. </data1201>
  54. <data1202>
  55. HTTP/1.1 200 Things are fine in server land
  56. Server: Microsoft-IIS/5.0
  57. Content-Type: text/html; charset=iso-8859-1
  58. Content-Length: 32
  59. Finally, this is the real page!
  60. </data1202>
  61. <!-- Third request has NTLM auth, wrong password -->
  62. <data300>
  63. HTTP/1.1 401 Need NTLM auth (3)
  64. Server: Microsoft-IIS/5.0
  65. Content-Type: text/html; charset=iso-8859-1
  66. Content-Length: 27
  67. WWW-Authenticate: NTLM
  68. This is not the real page!
  69. </data300>
  70. <data1301>
  71. HTTP/1.1 401 NTLM intermediate (3)
  72. Server: Microsoft-IIS/5.0
  73. Content-Type: text/html; charset=iso-8859-1
  74. Content-Length: 33
  75. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  76. This is still not the real page!
  77. </data1301>
  78. <data1302>
  79. HTTP/1.1 401 Sorry wrong password (2)
  80. Server: Microsoft-IIS/5.0
  81. Content-Type: text/html; charset=iso-8859-1
  82. Content-Length: 29
  83. WWW-Authenticate: NTLM
  84. This is a bad password page!
  85. </data1302>
  86. <!-- Fourth request has NTLM auth, wrong password -->
  87. <data400>
  88. HTTP/1.1 401 Need NTLM auth (4)
  89. Server: Microsoft-IIS/5.0
  90. Content-Type: text/html; charset=iso-8859-1
  91. Content-Length: 27
  92. WWW-Authenticate: NTLM
  93. This is not the real page!
  94. </data400>
  95. <data1401>
  96. HTTP/1.1 401 NTLM intermediate (4)
  97. Server: Microsoft-IIS/5.0
  98. Content-Type: text/html; charset=iso-8859-1
  99. Content-Length: 33
  100. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  101. This is still not the real page!
  102. </data1401>
  103. <data1402>
  104. HTTP/1.1 401 Sorry wrong password (3)
  105. Server: Microsoft-IIS/5.0
  106. Content-Type: text/html; charset=iso-8859-1
  107. Content-Length: 29
  108. WWW-Authenticate: NTLM
  109. This is a bad password page!
  110. </data1402>
  111. <!-- Fifth request has NTLM auth, right password -->
  112. <data500>
  113. HTTP/1.1 401 Need NTLM auth (5)
  114. Server: Microsoft-IIS/5.0
  115. Content-Type: text/html; charset=iso-8859-1
  116. Content-Length: 27
  117. WWW-Authenticate: NTLM
  118. This is not the real page!
  119. </data500>
  120. <data1501>
  121. HTTP/1.1 401 NTLM intermediate (5)
  122. Server: Microsoft-IIS/5.0
  123. Content-Type: text/html; charset=iso-8859-1
  124. Content-Length: 33
  125. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  126. This is still not the real page!
  127. </data1501>
  128. <data1502>
  129. HTTP/1.1 200 Things are fine in server land (2)
  130. Server: Microsoft-IIS/5.0
  131. Content-Type: text/html; charset=iso-8859-1
  132. Content-Length: 32
  133. Finally, this is the real page!
  134. </data1502>
  135. <datacheck>
  136. HTTP/1.1 401 NTLM intermediate
  137. Server: Microsoft-IIS/5.0
  138. Content-Type: text/html; charset=iso-8859-1
  139. Content-Length: 33
  140. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  141. HTTP/1.1 401 Sorry wrong password
  142. Server: Microsoft-IIS/5.0
  143. Content-Type: text/html; charset=iso-8859-1
  144. Content-Length: 29
  145. WWW-Authenticate: NTLM
  146. This is a bad password page!
  147. HTTP/1.1 401 NTLM intermediate (2)
  148. Server: Microsoft-IIS/5.0
  149. Content-Type: text/html; charset=iso-8859-1
  150. Content-Length: 33
  151. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  152. HTTP/1.1 200 Things are fine in server land
  153. Server: Microsoft-IIS/5.0
  154. Content-Type: text/html; charset=iso-8859-1
  155. Content-Length: 32
  156. Finally, this is the real page!
  157. HTTP/1.1 401 NTLM intermediate (3)
  158. Server: Microsoft-IIS/5.0
  159. Content-Type: text/html; charset=iso-8859-1
  160. Content-Length: 33
  161. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  162. HTTP/1.1 401 Sorry wrong password (2)
  163. Server: Microsoft-IIS/5.0
  164. Content-Type: text/html; charset=iso-8859-1
  165. Content-Length: 29
  166. WWW-Authenticate: NTLM
  167. This is a bad password page!
  168. HTTP/1.1 401 NTLM intermediate (4)
  169. Server: Microsoft-IIS/5.0
  170. Content-Type: text/html; charset=iso-8859-1
  171. Content-Length: 33
  172. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  173. HTTP/1.1 401 Sorry wrong password (3)
  174. Server: Microsoft-IIS/5.0
  175. Content-Type: text/html; charset=iso-8859-1
  176. Content-Length: 29
  177. WWW-Authenticate: NTLM
  178. This is a bad password page!
  179. HTTP/1.1 401 NTLM intermediate (5)
  180. Server: Microsoft-IIS/5.0
  181. Content-Type: text/html; charset=iso-8859-1
  182. Content-Length: 33
  183. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  184. HTTP/1.1 200 Things are fine in server land (2)
  185. Server: Microsoft-IIS/5.0
  186. Content-Type: text/html; charset=iso-8859-1
  187. Content-Length: 32
  188. Finally, this is the real page!
  189. </datacheck>
  190. </reply>
  191. # Client-side
  192. <client>
  193. <features>
  194. NTLM
  195. SSL
  196. !SSPI
  197. </features>
  198. <server>
  199. http
  200. </server>
  201. <tool>
  202. libauthretry
  203. </tool>
  204. <name>
  205. HTTP authorization retry (NTLM)
  206. </name>
  207. <command>
  208. http://%HOSTIP:%HTTPPORT/%TESTNUMBER ntlm ntlm
  209. </command>
  210. </client>
  211. # Verify data after the test has been "shot"
  212. <verify>
  213. <protocol>
  214. GET /%TESTNUMBER0100 HTTP/1.1
  215. Host: %HOSTIP:%HTTPPORT
  216. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  217. Accept: */*
  218. GET /%TESTNUMBER0100 HTTP/1.1
  219. Host: %HOSTIP:%HTTPPORT
  220. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
  221. Accept: */*
  222. GET /%TESTNUMBER0200 HTTP/1.1
  223. Host: %HOSTIP:%HTTPPORT
  224. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  225. Accept: */*
  226. GET /%TESTNUMBER0200 HTTP/1.1
  227. Host: %HOSTIP:%HTTPPORT
  228. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
  229. Accept: */*
  230. GET /%TESTNUMBER0300 HTTP/1.1
  231. Host: %HOSTIP:%HTTPPORT
  232. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  233. Accept: */*
  234. GET /%TESTNUMBER0300 HTTP/1.1
  235. Host: %HOSTIP:%HTTPPORT
  236. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
  237. Accept: */*
  238. GET /%TESTNUMBER0400 HTTP/1.1
  239. Host: %HOSTIP:%HTTPPORT
  240. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  241. Accept: */*
  242. GET /%TESTNUMBER0400 HTTP/1.1
  243. Host: %HOSTIP:%HTTPPORT
  244. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
  245. Accept: */*
  246. GET /%TESTNUMBER0500 HTTP/1.1
  247. Host: %HOSTIP:%HTTPPORT
  248. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  249. Accept: */*
  250. GET /%TESTNUMBER0500 HTTP/1.1
  251. Host: %HOSTIP:%HTTPPORT
  252. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
  253. Accept: */*
  254. </protocol>
  255. </verify>
  256. </testcase>