xref: /curl/tests/data/test2031 (revision 5a41abef)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP NTLM auth
7NTLM
8</keywords>
9</info>
10# Server-side
11<reply>
12
13<!-- First request has NTLM auth, wrong password -->
14<data100>
15HTTP/1.1 401 Need NTLM auth
16Server: Microsoft-IIS/5.0
17Content-Type: text/html; charset=iso-8859-1
18Content-Length: 27
19WWW-Authenticate: NTLM
20
21This is not the real page!
22</data100>
23
24<data1101>
25HTTP/1.1 401 NTLM intermediate
26Server: Microsoft-IIS/5.0
27Content-Type: text/html; charset=iso-8859-1
28Content-Length: 33
29WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
30
31This is still not the real page!
32</data1101>
33
34<data1102>
35HTTP/1.1 401 Sorry wrong password
36Server: Microsoft-IIS/5.0
37Content-Type: text/html; charset=iso-8859-1
38Content-Length: 29
39WWW-Authenticate: NTLM
40
41This is a bad password page!
42</data1102>
43
44<!-- Second request has NTLM auth, right password -->
45<data200>
46HTTP/1.1 401 Need NTLM auth (2)
47Server: Microsoft-IIS/5.0
48Content-Type: text/html; charset=iso-8859-1
49Content-Length: 27
50WWW-Authenticate: NTLM
51
52This is not the real page!
53</data200>
54
55<data1201>
56HTTP/1.1 401 NTLM intermediate (2)
57Server: Microsoft-IIS/5.0
58Content-Type: text/html; charset=iso-8859-1
59Content-Length: 33
60WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
61
62This is still not the real page!
63</data1201>
64
65<data1202>
66HTTP/1.1 200 Things are fine in server land
67Server: Microsoft-IIS/5.0
68Content-Type: text/html; charset=iso-8859-1
69Content-Length: 32
70
71Finally, this is the real page!
72</data1202>
73
74<!-- Third request has NTLM auth, wrong password -->
75<data300>
76HTTP/1.1 401 Need NTLM auth (3)
77Server: Microsoft-IIS/5.0
78Content-Type: text/html; charset=iso-8859-1
79Content-Length: 27
80WWW-Authenticate: NTLM
81
82This is not the real page!
83</data300>
84
85<data1301>
86HTTP/1.1 401 NTLM intermediate (3)
87Server: Microsoft-IIS/5.0
88Content-Type: text/html; charset=iso-8859-1
89Content-Length: 33
90WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
91
92This is still not the real page!
93</data1301>
94
95<data1302>
96HTTP/1.1 401 Sorry wrong password (2)
97Server: Microsoft-IIS/5.0
98Content-Type: text/html; charset=iso-8859-1
99Content-Length: 29
100WWW-Authenticate: NTLM
101
102This is a bad password page!
103</data1302>
104
105<!-- Fourth request has NTLM auth, wrong password -->
106<data400>
107HTTP/1.1 401 Need NTLM auth (4)
108Server: Microsoft-IIS/5.0
109Content-Type: text/html; charset=iso-8859-1
110Content-Length: 27
111WWW-Authenticate: NTLM
112
113This is not the real page!
114</data400>
115
116<data1401>
117HTTP/1.1 401 NTLM intermediate (4)
118Server: Microsoft-IIS/5.0
119Content-Type: text/html; charset=iso-8859-1
120Content-Length: 33
121WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
122
123This is still not the real page!
124</data1401>
125
126<data1402>
127HTTP/1.1 401 Sorry wrong password (3)
128Server: Microsoft-IIS/5.0
129Content-Type: text/html; charset=iso-8859-1
130Content-Length: 29
131WWW-Authenticate: NTLM
132
133This is a bad password page!
134</data1402>
135
136<!-- Fifth request has NTLM auth, right password -->
137<data500>
138HTTP/1.1 401 Need NTLM auth (5)
139Server: Microsoft-IIS/5.0
140Content-Type: text/html; charset=iso-8859-1
141Content-Length: 27
142WWW-Authenticate: NTLM
143
144This is not the real page!
145</data500>
146
147<data1501>
148HTTP/1.1 401 NTLM intermediate (5)
149Server: Microsoft-IIS/5.0
150Content-Type: text/html; charset=iso-8859-1
151Content-Length: 33
152WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
153
154This is still not the real page!
155</data1501>
156
157<data1502>
158HTTP/1.1 200 Things are fine in server land (2)
159Server: Microsoft-IIS/5.0
160Content-Type: text/html; charset=iso-8859-1
161Content-Length: 32
162
163Finally, this is the real page!
164</data1502>
165
166<datacheck>
167HTTP/1.1 401 NTLM intermediate
168Server: Microsoft-IIS/5.0
169Content-Type: text/html; charset=iso-8859-1
170Content-Length: 33
171WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
172
173HTTP/1.1 401 Sorry wrong password
174Server: Microsoft-IIS/5.0
175Content-Type: text/html; charset=iso-8859-1
176Content-Length: 29
177WWW-Authenticate: NTLM
178
179This is a bad password page!
180HTTP/1.1 401 NTLM intermediate (2)
181Server: Microsoft-IIS/5.0
182Content-Type: text/html; charset=iso-8859-1
183Content-Length: 33
184WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
185
186HTTP/1.1 200 Things are fine in server land
187Server: Microsoft-IIS/5.0
188Content-Type: text/html; charset=iso-8859-1
189Content-Length: 32
190
191Finally, this is the real page!
192HTTP/1.1 401 NTLM intermediate (3)
193Server: Microsoft-IIS/5.0
194Content-Type: text/html; charset=iso-8859-1
195Content-Length: 33
196WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
197
198HTTP/1.1 401 Sorry wrong password (2)
199Server: Microsoft-IIS/5.0
200Content-Type: text/html; charset=iso-8859-1
201Content-Length: 29
202WWW-Authenticate: NTLM
203
204This is a bad password page!
205HTTP/1.1 401 NTLM intermediate (4)
206Server: Microsoft-IIS/5.0
207Content-Type: text/html; charset=iso-8859-1
208Content-Length: 33
209WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
210
211HTTP/1.1 401 Sorry wrong password (3)
212Server: Microsoft-IIS/5.0
213Content-Type: text/html; charset=iso-8859-1
214Content-Length: 29
215WWW-Authenticate: NTLM
216
217This is a bad password page!
218HTTP/1.1 401 NTLM intermediate (5)
219Server: Microsoft-IIS/5.0
220Content-Type: text/html; charset=iso-8859-1
221Content-Length: 33
222WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
223
224HTTP/1.1 200 Things are fine in server land (2)
225Server: Microsoft-IIS/5.0
226Content-Type: text/html; charset=iso-8859-1
227Content-Length: 32
228
229Finally, this is the real page!
230</datacheck>
231
232</reply>
233
234# Client-side
235<client>
236<features>
237NTLM
238SSL
239!SSPI
240</features>
241<server>
242http
243</server>
244<tool>
245libauthretry
246</tool>
247
248<name>
249HTTP authorization retry (NTLM)
250</name>
251<command>
252http://%HOSTIP:%HTTPPORT/%TESTNUMBER ntlm ntlm
253</command>
254</client>
255
256# Verify data after the test has been "shot"
257<verify>
258<protocol>
259GET /%TESTNUMBER0100 HTTP/1.1
260Host: %HOSTIP:%HTTPPORT
261Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
262Accept: */*
263
264GET /%TESTNUMBER0100 HTTP/1.1
265Host: %HOSTIP:%HTTPPORT
266Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
267Accept: */*
268
269GET /%TESTNUMBER0200 HTTP/1.1
270Host: %HOSTIP:%HTTPPORT
271Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
272Accept: */*
273
274GET /%TESTNUMBER0200 HTTP/1.1
275Host: %HOSTIP:%HTTPPORT
276Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
277Accept: */*
278
279GET /%TESTNUMBER0300 HTTP/1.1
280Host: %HOSTIP:%HTTPPORT
281Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
282Accept: */*
283
284GET /%TESTNUMBER0300 HTTP/1.1
285Host: %HOSTIP:%HTTPPORT
286Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
287Accept: */*
288
289GET /%TESTNUMBER0400 HTTP/1.1
290Host: %HOSTIP:%HTTPPORT
291Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
292Accept: */*
293
294GET /%TESTNUMBER0400 HTTP/1.1
295Host: %HOSTIP:%HTTPPORT
296Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
297Accept: */*
298
299GET /%TESTNUMBER0500 HTTP/1.1
300Host: %HOSTIP:%HTTPPORT
301Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
302Accept: */*
303
304GET /%TESTNUMBER0500 HTTP/1.1
305Host: %HOSTIP:%HTTPPORT
306Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
307Accept: */*
308
309</protocol>
310</verify>
311</testcase>
312