2017-07-18 21:46:21 +03:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP Negotiate auth (stub ntlm)
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2018-09-10 10:18:01 +03:00
|
|
|
<!-- First request, expect 401 (ntlm challenge) -->
|
2017-07-18 21:46:21 +03:00
|
|
|
<data1>
|
|
|
|
HTTP/1.1 401 Authorization Required
|
|
|
|
Server: Microsoft-IIS/7.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
WWW-Authenticate: Negotiate Qw==
|
|
|
|
Content-Length: 19
|
|
|
|
|
|
|
|
Still not yet sir!
|
|
|
|
</data1>
|
2018-09-10 10:18:01 +03:00
|
|
|
<!-- Second request, expect success -->
|
2017-07-18 21:46:21 +03:00
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 Things are fine in server land
|
|
|
|
Server: Microsoft-IIS/7.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
WWW-Authenticate: Negotiate RA==
|
|
|
|
Content-Length: 15
|
|
|
|
|
|
|
|
Nice auth sir!
|
|
|
|
</data2>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 401 Authorization Required
|
|
|
|
Server: Microsoft-IIS/7.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
WWW-Authenticate: Negotiate Qw==
|
|
|
|
Content-Length: 19
|
|
|
|
|
|
|
|
HTTP/1.1 200 Things are fine in server land
|
|
|
|
Server: Microsoft-IIS/7.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
WWW-Authenticate: Negotiate RA==
|
|
|
|
Content-Length: 15
|
|
|
|
|
|
|
|
Nice auth sir!
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP Negotiate authentication (stub ntlm)
|
|
|
|
</name>
|
|
|
|
<features>
|
|
|
|
GSS-API
|
|
|
|
ld_preload
|
|
|
|
!debug
|
|
|
|
</features>
|
|
|
|
<setenv>
|
|
|
|
LD_PRELOAD=%PWD/libtest/.libs/libstubgss.so
|
|
|
|
CURL_STUB_GSS_CREDS="NTLM_Alice"
|
|
|
|
</setenv>
|
|
|
|
<command>
|
2023-08-14 11:21:46 +03:00
|
|
|
--negotiate http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2017-07-18 21:46:21 +03:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 19:38:26 +03:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2017-07-18 21:46:21 +03:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Authorization: Negotiate Ik5UTE1fQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjI6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ==
|
2020-10-02 14:45:24 +03:00
|
|
|
User-Agent: curl/%VERSION
|
2017-07-18 21:46:21 +03:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-12 19:38:26 +03:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2017-07-18 21:46:21 +03:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Authorization: Negotiate Ik5UTE1fQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjM6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ==
|
2020-10-02 14:45:24 +03:00
|
|
|
User-Agent: curl/%VERSION
|
2017-07-18 21:46:21 +03:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|