6 <!-- no <data> in this test since we have NTLM from the start
8 This is supposed to be returned when the server gets a first
9 Authorization: NTLM line passed-in from the client -->
12 HTTP/1.1 401 Now gimme that second request of crap
13 Server: Microsoft-IIS/5.0
14 Content-Type: text/html; charset=iso-8859-1
16 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
18 This is not the real page either!
21 # This is supposed to be returned when the server gets the second
22 # Authorization: NTLM line passed-in from the client
24 HTTP/1.1 200 Things are fine in server land swsclose
25 Server: Microsoft-IIS/5.0
26 Content-Type: text/html; charset=iso-8859-1
29 Finally, this is the real page!
33 HTTP/1.1 401 Now gimme that second request of crap
34 Server: Microsoft-IIS/5.0
35 Content-Type: text/html; charset=iso-8859-1
37 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
39 HTTP/1.1 200 Things are fine in server land swsclose
40 Server: Microsoft-IIS/5.0
41 Content-Type: text/html; charset=iso-8859-1
44 Finally, this is the real page!
58 HTTP with NTLM authorization and --fail
61 http://%HOSTIP:%HTTPPORT/150 -u testuser:testpass --ntlm --fail
65 # Verify data after the test has been "shot"
70 # We strip off a large chunk of the type-2 NTLM message since it depends on
71 # the local host name and thus differs on different machines!
73 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
77 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
78 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
79 Host: %HOSTIP:%HTTPPORT
83 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
84 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
85 Host: %HOSTIP:%HTTPPORT