test169 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. HTTP proxy NTLM auth
  8. HTTP Digest auth
  9. NTLM
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. # this is returned first since we get no proxy-auth
  15. <data>
  16. HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
  17. Proxy-Authenticate: NTLM
  18. And you should ignore this data.
  19. </data>
  20. # then this is returned since we get no server-auth
  21. <data1000>
  22. HTTP/1.1 200 Authorizated fine
  23. Content-Length: 27
  24. Welcome to the end station
  25. </data1000>
  26. <data1001>
  27. HTTP/1.1 407 NTLM type-1 received sending back type-2
  28. Server: Microsoft-IIS/5.0
  29. Content-Length: 34
  30. Content-Type: text/html; charset=iso-8859-1
  31. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  32. This is not the real page either!
  33. </data1001>
  34. # This is supposed to be returned when the server gets the second
  35. # Authorization: NTLM line passed-in from the client
  36. <data1002>
  37. HTTP/1.1 401 You now need to authenticate with the host
  38. Server: Microsoft-IIS/5.0
  39. WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
  40. Content-Length: 46
  41. Content-Type: text/html; charset=iso-8859-1
  42. We have not authenticated with the server yet
  43. </data1002>
  44. <datacheck>
  45. HTTP/1.1 407 NTLM type-1 received sending back type-2
  46. Server: Microsoft-IIS/5.0
  47. Content-Length: 34
  48. Content-Type: text/html; charset=iso-8859-1
  49. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  50. HTTP/1.1 401 You now need to authenticate with the host
  51. Server: Microsoft-IIS/5.0
  52. WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
  53. Content-Length: 46
  54. Content-Type: text/html; charset=iso-8859-1
  55. HTTP/1.1 200 Authorizated fine
  56. Content-Length: 27
  57. Welcome to the end station
  58. </datacheck>
  59. </reply>
  60. # Client-side
  61. <client>
  62. <server>
  63. http
  64. </server>
  65. <features>
  66. NTLM
  67. SSL
  68. !SSPI
  69. proxy
  70. </features>
  71. <name>
  72. HTTP with proxy-requiring-NTLM to site-requiring-Digest
  73. </name>
  74. <command>
  75. http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --digest --user digest:alot
  76. </command>
  77. </client>
  78. # Verify data after the test has been "shot"
  79. <verify>
  80. <protocol>
  81. GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
  82. Host: data.from.server.requiring.digest.hohoho.com
  83. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  84. User-Agent: curl/%VERSION
  85. Accept: */*
  86. Proxy-Connection: Keep-Alive
  87. GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
  88. Host: data.from.server.requiring.digest.hohoho.com
  89. Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
  90. User-Agent: curl/%VERSION
  91. Accept: */*
  92. Proxy-Connection: Keep-Alive
  93. GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
  94. Host: data.from.server.requiring.digest.hohoho.com
  95. Authorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/%TESTNUMBER", response="95d48591985a03c4b49cb962aa7bd3e6"
  96. User-Agent: curl/%VERSION
  97. Accept: */*
  98. Proxy-Connection: Keep-Alive
  99. </protocol>
  100. </verify>
  101. </testcase>