test68 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Server-side
  2. <reply>
  3. # This is supposed to be returned when the server gets a first
  4. # Authorization: NTLM line passed-in from the client
  5. <data1001>
  6. HTTP/1.1 401 Now gimme that second request of crap
  7. Server: Microsoft-IIS/5.0
  8. Content-Length: 34
  9. Content-Type: text/html; charset=iso-8859-1
  10. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  11. This is not the real page either!
  12. </data1001>
  13. # This is supposed to be returned when the server gets the second
  14. # Authorization: NTLM line passed-in from the client
  15. <data1002>
  16. HTTP/1.1 401 You give me wrong password
  17. Server: Microsoft-IIS/5.0
  18. WWW-Authenticate: NTLM
  19. Content-Length: 46
  20. Content-Type: text/html; charset=iso-8859-1
  21. Wrong password dude. Get it fixed and return.
  22. </data1002>
  23. <datacheck>
  24. HTTP/1.1 401 Now gimme that second request of crap
  25. Server: Microsoft-IIS/5.0
  26. Content-Length: 34
  27. Content-Type: text/html; charset=iso-8859-1
  28. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  29. HTTP/1.1 401 You give me wrong password
  30. Server: Microsoft-IIS/5.0
  31. WWW-Authenticate: NTLM
  32. Content-Length: 46
  33. Content-Type: text/html; charset=iso-8859-1
  34. Wrong password dude. Get it fixed and return.
  35. </datacheck>
  36. </reply>
  37. # Client-side
  38. <client>
  39. # NTLM only works if SSL-support is present
  40. <features>
  41. SSL
  42. </features>
  43. <server>
  44. http
  45. </server>
  46. <name>
  47. HTTP with NTLM authorization and wrong password
  48. </name>
  49. <command>
  50. http://%HOSTIP:%HOSTPORT/68 -u testuser:testpass --ntlm
  51. </command>
  52. </test>
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <strip>
  56. ^User-Agent:.*
  57. </strip>
  58. <protocol>
  59. GET /68 HTTP/1.1
  60. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  61. User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  62. Host: 127.0.0.1:8999
  63. Pragma: no-cache
  64. Accept: */*
  65. GET /68 HTTP/1.1
  66. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  67. User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  68. Host: 127.0.0.1:8999
  69. Pragma: no-cache
  70. Accept: */*
  71. </protocol>
  72. </verify>