test2032 2.1 KB

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