mirror of
https://github.com/curl/curl.git
synced 2026-05-03 17:47:55 +03:00
test2092 verifies that when only NTLM credentials are available and CURL_DISABLE_NEGOTIATE_NTLM is active, SPNEGO auth is silently skipped and the request is sent without an Authorization header. test2093 verifies that Kerberos credentials still succeed when built with CURL_DISABLE_NEGOTIATE_NTLM. Both tests require the negotiate-ntlm-disabled feature, which is reported by curl --version as "SPNEGO-no-NTLM" when the compile-time option is active. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
58 lines
986 B
XML
58 lines
986 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
HTTP Negotiate auth (stub ntlm)
|
|
SPNEGO NTLM disallowed
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes" crlf="headers">
|
|
HTTP/1.1 200 OK swsclose
|
|
Content-Length: 23
|
|
|
|
This IS the real page!
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
SPNEGO skips auth when NTLM blocked by CURL_DISABLE_NEGOTIATE_NTLM
|
|
</name>
|
|
<features>
|
|
GSS-API
|
|
Debug
|
|
</features>
|
|
<setenv>
|
|
CURL_STUB_GSS_CREDS="NTLM_Alice"
|
|
</setenv>
|
|
<command>
|
|
--negotiate http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
0
|
|
</errorcode>
|
|
# When NTLM is the only available mechanism and is blocked,
|
|
# negotiate auth silently fails and the request is sent without
|
|
# any Authorization header.
|
|
<protocol crlf="headers">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|