test68 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. # This is supposed to be returned when the server gets a first
  13. # Authorization: NTLM line passed-in from the client
  14. <data1001>
  15. HTTP/1.1 401 Now gimme that second request of crap
  16. Server: Microsoft-IIS/5.0
  17. Content-Length: 34
  18. Content-Type: text/html; charset=iso-8859-1
  19. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  20. This is not the real page either!
  21. </data1001>
  22. # This is supposed to be returned when the server gets the second
  23. # Authorization: NTLM line passed-in from the client
  24. <data1002>
  25. HTTP/1.1 401 You give me wrong password
  26. Server: Microsoft-IIS/5.0
  27. WWW-Authenticate: NTLM
  28. Content-Length: 46
  29. Content-Type: text/html; charset=iso-8859-1
  30. Wrong password dude. Get it fixed and return.
  31. </data1002>
  32. <datacheck>
  33. HTTP/1.1 401 Now gimme that second request of crap
  34. Server: Microsoft-IIS/5.0
  35. Content-Length: 34
  36. Content-Type: text/html; charset=iso-8859-1
  37. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  38. HTTP/1.1 401 You give me wrong password
  39. Server: Microsoft-IIS/5.0
  40. WWW-Authenticate: NTLM
  41. Content-Length: 46
  42. Content-Type: text/html; charset=iso-8859-1
  43. Wrong password dude. Get it fixed and return.
  44. </datacheck>
  45. </reply>
  46. # Client-side
  47. <client>
  48. <features>
  49. NTLM
  50. SSL
  51. !SSPI
  52. </features>
  53. <server>
  54. http
  55. </server>
  56. <name>
  57. HTTP with NTLM authorization and wrong password
  58. </name>
  59. <command>
  60. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm
  61. </command>
  62. </client>
  63. # Verify data after the test has been "shot"
  64. <verify>
  65. <protocol>
  66. GET /%TESTNUMBER HTTP/1.1
  67. Host: %HOSTIP:%HTTPPORT
  68. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  69. User-Agent: curl/%VERSION
  70. Accept: */*
  71. GET /%TESTNUMBER HTTP/1.1
  72. Host: %HOSTIP:%HTTPPORT
  73. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
  74. User-Agent: curl/%VERSION
  75. Accept: */*
  76. </protocol>
  77. </verify>
  78. </testcase>