2017-07-19 02:46:21 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP Negotiate auth (stub krb5)
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2018-09-10 15:18:01 +08:00
|
|
|
<!-- First request, expect success in one shot -->
|
2017-07-19 02:46:21 +08:00
|
|
|
<data1>
|
|
|
|
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!
|
|
|
|
</data1>
|
|
|
|
<datacheck>
|
|
|
|
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 krb5)
|
|
|
|
</name>
|
|
|
|
<features>
|
|
|
|
GSS-API
|
|
|
|
ld_preload
|
|
|
|
!debug
|
|
|
|
</features>
|
|
|
|
<setenv>
|
|
|
|
LD_PRELOAD=%PWD/libtest/.libs/libstubgss.so
|
|
|
|
CURL_STUB_GSS_CREDS="KRB5_Alice"
|
|
|
|
</setenv>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-u: --negotiate http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2017-07-19 02:46:21 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2017-07-19 02:46:21 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Authorization: Negotiate IktSQjVfQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjE6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ==
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2017-07-19 02:46:21 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|