11 # This is supposed to be returned when the server gets a first
12 # Authorization: NTLM line passed-in from the client
14 HTTP/1.1 401 Now gimme that second request of crap
\r
15 Server: Microsoft-IIS/5.0
\r
17 Content-Type: text/html; charset=iso-8859-1
\r
18 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
20 This is not the real page either!
23 # This is supposed to be returned when the server gets the second
24 # Authorization: NTLM line passed-in from the client
26 HTTP/1.1 401 You give me wrong password
\r
27 Server: Microsoft-IIS/5.0
\r
28 WWW-Authenticate: NTLM
\r
30 Content-Type: text/html; charset=iso-8859-1
\r
32 Wrong password dude. Get it fixed and return.
36 HTTP/1.1 401 Now gimme that second request of crap
\r
37 Server: Microsoft-IIS/5.0
\r
39 Content-Type: text/html; charset=iso-8859-1
\r
40 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
42 HTTP/1.1 401 You give me wrong password
\r
43 Server: Microsoft-IIS/5.0
\r
44 WWW-Authenticate: NTLM
\r
46 Content-Type: text/html; charset=iso-8859-1
\r
48 Wrong password dude. Get it fixed and return.
62 HTTP with NTLM authorization and wrong password
65 http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
69 # Verify data after the test has been "shot"
74 # We strip off a large chunk of the type-2 NTLM message since it depends on
75 # the local host name and thus differs on different machines!
77 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
81 Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAA=
\r
82 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
\r
83 Host: 127.0.0.1:%HTTPPORT
\r
87 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
88 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
\r
89 Host: 127.0.0.1:%HTTPPORT
\r