2012-08-09 06:15:04 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP Basic auth
|
|
|
|
HTTP NTLM auth
|
2017-08-13 06:00:39 +08:00
|
|
|
flaky
|
2022-05-20 22:24:01 +08:00
|
|
|
NTLM
|
2012-08-09 06:15:04 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
<!-- Basic auth -->
|
|
|
|
<data100>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 401 Need Basic or NTLM auth
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 29
|
|
|
|
WWW-Authenticate: NTLM
|
|
|
|
WWW-Authenticate: Basic realm="testrealm"
|
|
|
|
|
2012-08-09 06:15:04 +08:00
|
|
|
This is a bad password page!
|
|
|
|
</data100>
|
|
|
|
|
2017-03-04 19:50:30 +08:00
|
|
|
<!-- NTLM auth -->
|
2012-08-09 06:15:04 +08:00
|
|
|
<data200>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 401 Need Basic or NTLM auth (2)
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 27
|
|
|
|
WWW-Authenticate: NTLM
|
|
|
|
WWW-Authenticate: Basic realm="testrealm"
|
|
|
|
|
2012-08-09 06:15:04 +08:00
|
|
|
This is not the real page!
|
|
|
|
</data200>
|
|
|
|
|
|
|
|
<data1201>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 401 NTLM intermediate (2)
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 33
|
2018-12-28 22:04:53 +08:00
|
|
|
WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
|
2014-02-01 07:52:08 +08:00
|
|
|
|
2012-08-09 06:15:04 +08:00
|
|
|
This is still not the real page!
|
|
|
|
</data1201>
|
|
|
|
|
|
|
|
<data1202>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 200 Things are fine in server land
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 32
|
|
|
|
|
2012-08-09 06:15:04 +08:00
|
|
|
Finally, this is the real page!
|
|
|
|
</data1202>
|
|
|
|
|
|
|
|
<datacheck>
|
2017-06-16 05:47:42 +08:00
|
|
|
Data connection 0: 228
|
|
|
|
Data connection 1: 228
|
|
|
|
Data connection 2: 402
|
2012-08-09 06:15:04 +08:00
|
|
|
</datacheck>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2012-11-28 01:01:55 +08:00
|
|
|
<features>
|
|
|
|
NTLM
|
2019-12-30 04:23:25 +08:00
|
|
|
SSL
|
2013-12-29 04:22:22 +08:00
|
|
|
!SSPI
|
2012-11-28 01:01:55 +08:00
|
|
|
</features>
|
2012-08-09 06:15:04 +08:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<tool>
|
|
|
|
libntlmconnect
|
|
|
|
</tool>
|
|
|
|
|
2022-05-20 22:24:01 +08:00
|
|
|
<name>
|
2012-08-09 06:15:04 +08:00
|
|
|
NTLM connection mapping
|
2022-05-20 22:24:01 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2012-08-09 06:15:04 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0100 HTTP/1.1
|
2019-06-25 00:25:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2015-03-12 23:06:11 +08:00
|
|
|
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
|
2012-09-01 05:23:40 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0100 HTTP/1.1
|
2019-06-25 00:25:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2015-03-12 23:06:11 +08:00
|
|
|
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
|
2012-09-01 05:23:40 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0200 HTTP/1.1
|
2019-06-25 00:25:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2015-03-12 23:06:11 +08:00
|
|
|
Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
2012-09-01 05:23:40 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0200 HTTP/1.1
|
2019-06-25 00:25:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2022-05-24 18:51:28 +08:00
|
|
|
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
|
2012-09-01 05:23:40 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2012-08-09 06:15:04 +08:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|