Repository navigation
remove NTLM support - #22933
remove NTLM support#22933bagder wants to merge 2 commits into
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
c5db34a to
cea6420
Compare
52af408 to
c93ff1c
Compare
Already disabled in Fil-C and valgrind tests due to extreme slowness. This also started happening last week in regular NetBSD 11.0 jobs, e.g.: https://github.com/curl/curl/actions/runs/39256112826/job/118071702213?pr=23492 making these jobs regularly stall and timeout at 20 minutes. NTLM support is scheduled for removal in this cycle. Ref: curl#22933 Follow-up to a7ece53 Closes curl#23493
c7cbecf to
bd6450f
Compare
|
I think we should do that in a separate deprecation so that it gets eyes on it and documentation separately. |
bd6450f to
01e2e21
Compare
01e2e21 to
438f1ef
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-platform authentication and connection-reuse changes require human validation, particularly given the unresolved regression-coverage gaps.
4 open issues
What changed in this PR
Removes NTLM authentication from curl’s protocol handling, build configuration, and feature reporting, with corresponding test and documentation updates.
Changes:
- Removes NTLM authentication paths, connection state, and build options.
- Deletes NTLM tests and server handling, preserves the Digest upload helper as
lib551, and adjusts CI test minimums. - Updates authentication guidance, feature lists, and removal history.
| File | Description |
|---|---|
| tests/unit/unit1611.c | Deletes MD4 unit tests. |
| tests/unit/unit1601.c | Removes the NTLM test guard. |
| tests/unit/unit1600.c | Deletes NTLM hash tests. |
| tests/unit/Makefile.inc | Unregisters deleted unit tests. |
| tests/test1177.pl | Accounts for the retired NTLM feature. |
| tests/server/sws.c | Removes NTLM response selection and state. |
| tests/server/rtspd.c | Removes NTLM handling; guards header-end arithmetic. |
| tests/libtest/Makefile.inc | Removes NTLM helpers and registers lib551. |
| tests/libtest/lib694.c | Deletes NTLM authentication-info testing. |
| tests/libtest/lib590.c | Deletes NTLM proxy-selection testing. |
| tests/libtest/lib555.c | Deletes multi-interface NTLM upload testing. |
| tests/libtest/lib551.c | Renames the retained upload helper’s symbols. |
| tests/libtest/lib2032.c | Deletes NTLM connection-mapping testing. |
| tests/data/test936 | Deletes SMTP NTLM downgrade testing. |
| tests/data/test933 | Deletes SMTP NTLM cancellation testing. |
| tests/data/test921 | Deletes SMTP NTLM initial-response testing. |
| tests/data/test91 | Deletes NTLM authentication-selection testing. |
| tests/data/test89 | Deletes NTLM redirect testing. |
| tests/data/test880 | Deletes POP3 NTLM downgrade testing. |
| tests/data/test877 | Deletes POP3 NTLM cancellation testing. |
| tests/data/test873 | Deletes POP3 NTLM initial-response testing. |
| tests/data/test868 | Deletes POP3 NTLM authentication testing. |
| tests/data/test834 | Deletes IMAP NTLM downgrade testing. |
| tests/data/test831 | Deletes IMAP NTLM cancellation testing. |
| tests/data/test827 | Deletes IMAP NTLM initial-response testing. |
| tests/data/test822 | Deletes IMAP NTLM authentication testing. |
| tests/data/test82 | Deletes Basic-auth testing against an NTLM-only proxy. |
| tests/data/test81 | Deletes NTLM proxy authentication testing. |
| tests/data/test775 | Deletes NTLM oversized-username testing. |
| tests/data/test76 | Deletes comma-separated NTLM challenge testing. |
| tests/data/test694 | Deletes repeated NTLM authentication testing. |
| tests/data/test69 | Deletes mixed NTLM challenge testing. |
| tests/data/test68 | Deletes NTLM wrong-password testing. |
| tests/data/test67 | Deletes basic NTLM handshake testing. |
| tests/data/test590 | Deletes proxy NTLM-selection testing. |
| tests/data/test555 | Deletes multi-interface NTLM POST testing. |
| tests/data/test551 | Uses the default lib551 helper selection. |
| tests/data/test548 | Deletes NTLM POSTFIELDS testing. |
| tests/data/test547 | Deletes NTLM callback-upload testing. |
| tests/data/test267 | Deletes NTLM POST custom-header testing. |
| tests/data/test265 | Deletes NTLM CONNECT response-body testing. |
| tests/data/test243 | Deletes proxy-anyauth NTLM POST testing. |
| tests/data/test239 | Deletes explicit proxy NTLM POST testing. |
| tests/data/test213 | Deletes HTTP/1.0 NTLM CONNECT testing. |
| tests/data/test209 | Deletes NTLM CONNECT authentication testing. |
| tests/data/test2032 | Deletes NTLM connection-mapping fixtures. |
| tests/data/test176 | Deletes NTLM POST testing without required authentication. |
| tests/data/test170 | Deletes NTLM proxy empty-response testing. |
| tests/data/test169 | Deletes combined proxy NTLM/server Digest testing. |
| tests/data/test162 | Deletes NTLM authentication-mismatch testing. |
| tests/data/test1611 | Deletes the MD4 unit-test specification. |
| tests/data/test1600 | Deletes the NTLM unit-test specification. |
| tests/data/test159 | Deletes NTLM HTTP/1.0 failure testing. |
| tests/data/test155 | Deletes NTLM anyauth PUT testing. |
| tests/data/test150 | Deletes NTLM testing with --fail. |
| tests/data/test1419 | Deletes unauthenticated anyauth connection-reuse testing. |
| tests/data/test1418 | Deletes Digest anyauth connection-reuse testing. |
| tests/data/test1215 | Deletes server NTLM testing through a proxy. |
| tests/data/test1100 | Deletes NTLM POST redirect testing. |
| tests/data/test1097 | Deletes proxy-NTLM testing without required authentication. |
| tests/data/test1021 | Deletes NTLM CONNECT reconnect testing. |
| tests/data/test1008 | Deletes NTLM CONNECT chunked-response testing. |
| tests/data/Makefile.am | Removes test registrations. |
| projects/vms/gnv_curl_configure.sh | Drops the obsolete NTLM-WB configure flag. |
| projects/vms/build_curl-config_script.com | Removes NTLM-WB from recorded configure options. |
| lib/version.c | Stops reporting NTLM support. |
| lib/vauth/vauth.h | Removes NTLM structures and declarations. |
| lib/vauth/vauth.c | Removes NTLM connection metadata management. |
| lib/urldata.h | Removes NTLM connection states. |
| lib/url.c | Removes NTLM-specific connection matching and resets. |
| lib/setup-vms.h | Removes MD4 symbol mappings. |
| lib/setopt.c | Always filters out NTLM authentication. |
| lib/multi.c | Removes the NTLM connection-close exception. |
| lib/Makefile.inc | Removes NTLM and MD4 source/header registrations. |
| lib/ldap.c | Removes explicit Windows LDAP NTLM binding. |
| lib/http.c | Removes NTLM selection and handshake handling. |
| lib/http_ntlm.h | Deletes the HTTP NTLM interface. |
| lib/hmac.c | Removes NTLM from compilation conditions. |
| lib/curl_setup.h | Removes NTLM capability definitions. |
| lib/curl_sasl.h | Removes NTLM SASL names and states. |
| lib/curl_sasl.c | Removes NTLM SASL selection and exchanges. |
| lib/curl_ntlm_core.h | Deletes NTLM cryptographic declarations. |
| lib/curl_md4.h | Deletes the MD4 interface. |
| lib/curl_gethostname.c | Removes NTLM references from comments. |
| lib/curl_config-cmake.h.in | Removes the NTLM configuration definition. |
| docs/TheArtOfHttpScripting.md | Removes NTLM authentication recommendations. |
| docs/tests/FILEFORMAT.md | Removes NTLM test-server and feature documentation. |
| docs/libcurl/symbols-in-versions | Records NTLM symbol retirement. |
| docs/libcurl/opts/CURLOPT_USERPWD.md | Removes NTLM username guidance. |
| docs/libcurl/opts/CURLOPT_USERNAME.md | Removes NTLM-specific credential guidance. |
| docs/libcurl/opts/CURLOPT_SASL_IR.md | Removes NTLM from supported mechanisms. |
| docs/libcurl/opts/CURLOPT_KEEP_SENDING_ON_ERROR.md | Removes the manual NTLM use case. |
| docs/libcurl/opts/CURLOPT_HTTPAUTH.md | Documents NTLM support removal. |
| docs/libcurl/opts/CURLINFO_PROXYAUTH_AVAIL.md | Removes NTLM from example output. |
| docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.md | Removes NTLM from example output. |
| docs/libcurl/libcurl-env-dbg.md | Limits hostname-override guidance to SMTP. |
| docs/KNOWN_RISKS.md | Removes NTLM as a weak-crypto example. |
| docs/KNOWN_BUGS.md | Revises NTLM-related known-bug text. |
| docs/INSTALL.md | Removes the NTLM configure option. |
| docs/INSTALL-CMAKE.md | Removes the NTLM CMake option. |
| docs/HISTORY.md | Records NTLM removal. |
| docs/FEATURES.md | Removes NTLM from protocol feature lists. |
| docs/FAQ.md | Removes NTLM advice and build requirements. |
| docs/DEPRECATE.md | Moves NTLM into the removal history. |
| docs/cmdline-opts/version.md | Documents retirement of the NTLM feature. |
| docs/cmdline-opts/user.md | Removes NTLM credential guidance. |
| docs/cmdline-opts/proxy-user.md | Removes NTLM ambient-credential guidance. |
| docs/cmdline-opts/proxy-ntlm.md | Adds a deprecation notice. |
| docs/cmdline-opts/ntlm.md | Adds a deprecation notice. |
| configure.ac | Removes NTLM configuration and feature detection. |
| CMakeLists.txt | Removes NTLM options and feature detection. |
| .github/workflows/windows.yml | Removes NTLM flags and lowers test minimums. |
| .github/workflows/non-native.yml | Removes the NTLM flag and lowers the test minimum. |
| .github/workflows/macos.yml | Removes NTLM flags and adjusts test minimums. |
| .github/workflows/http3-linux.yml | Removes NTLM flags and adjusts test minimums. |
| .github/labeler.yml | Removes NTLM-specific labeling patterns. |
Review effort: Balanced
b825126 to
d7c27f5
Compare
| return CURLE_OK; | ||
| } | ||
|
|
||
| #endif /* Using NTLM (without SSPI) or AWS */ |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
d7c27f5 to
b13030f
Compare
b13030f to
ef8a880
Compare
ef8a880 to
04305e0
Compare
04305e0 to
70f4b03
Compare
|
Release notes will be updated later right? https://curl.se/dev/release-notes.html so that it's missing there right now doesn't mean 8.24.0 won't include it? How confident are you this will ship in 8.24.0? Just for planning purposes. Thank you for maintaining curl! |
Yes, that's updated every few days.
Very. It's in master now, we release from master. The only thing that can change this is if some major problem with this PR is unveiled and we need to revert and do some more work, but I think that has a low risk of happening. |



No description provided.