/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2057
57 строк
1000 B
Matthew John Cheetham
spnego: block NTLM fallback in SPNEGO negotiation
28 июл 2026, 00:28
28 июл 2026, 00:28
a8881e5
Код
Авторство
О чём код?
<?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> HTTP Negotiate authentication blocked for stub NTLM credentials </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> # NTLM is blocked within SPNEGO, so when only NTLM credentials are # available, 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>