blob: 72c7cc4d210aee01b16664ff81be3c3a607689c7 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Basic auth
7HTTP NTLM auth
8flaky
9NTLM
10</keywords>
11</info>
12# Server-side
13<reply>
14
15<!-- Basic auth -->
16<data100>
17HTTP/1.1 401 Need Basic or NTLM auth
18Server: Microsoft-IIS/5.0
19Content-Type: text/html; charset=iso-8859-1
20Content-Length: 29
21WWW-Authenticate: NTLM
22WWW-Authenticate: Basic realm="testrealm"
23
24This is a bad password page!
25</data100>
26
27<!-- NTLM auth -->
28<data200>
29HTTP/1.1 401 Need Basic or NTLM auth (2)
30Server: Microsoft-IIS/5.0
31Content-Type: text/html; charset=iso-8859-1
32Content-Length: 27
33WWW-Authenticate: NTLM
34WWW-Authenticate: Basic realm="testrealm"
35
36This is not the real page!
37</data200>
38
39<data1201>
40HTTP/1.1 401 NTLM intermediate (2)
41Server: Microsoft-IIS/5.0
42Content-Type: text/html; charset=iso-8859-1
43Content-Length: 33
44WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
45
46This is still not the real page!
47</data1201>
48
49<data1202>
50HTTP/1.1 200 Things are fine in server land
51Server: Microsoft-IIS/5.0
52Content-Type: text/html; charset=iso-8859-1
53Content-Length: 32
54
55Finally, this is the real page!
56</data1202>
57
58<datacheck>
59Data connection 0: 228
60Data connection 1: 228
61Data connection 2: 402
62</datacheck>
63
64</reply>
65
66# Client-side
67<client>
68<features>
69NTLM
70SSL
71!SSPI
72</features>
73<server>
74http
75</server>
76<tool>
77libntlmconnect
78</tool>
79
80<name>
81NTLM connection mapping
82</name>
83<command>
84http://%HOSTIP:%HTTPPORT/%TESTNUMBER
85</command>
86</client>
87
88# Verify data after the test has been "shot"
89<verify>
90<protocol>
91GET /%TESTNUMBER0100 HTTP/1.1
92Host: %HOSTIP:%HTTPPORT
93Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
94Accept: */*
95
96GET /%TESTNUMBER0100 HTTP/1.1
97Host: %HOSTIP:%HTTPPORT
98Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
99Accept: */*
100
101GET /%TESTNUMBER0200 HTTP/1.1
102Host: %HOSTIP:%HTTPPORT
103Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
104Accept: */*
105
106GET /%TESTNUMBER0200 HTTP/1.1
107Host: %HOSTIP:%HTTPPORT
108Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
109Accept: */*
110
111</protocol>
112</verify>
113</testcase>