Skip to content

fix: default to NTLM v2 in the network service for POSIX platforms - #23846

Merged
deepak1556 merged 2 commits into
masterfrom
robo/ntlm_v2
Jun 2, 2020
Merged

deepak1556 merged 2 commits into
masterfrom
robo/ntlm_v2

Conversation

@deepak1556

@deepak1556 deepak1556 commented May 29, 2020 •

Copy link
Copy Markdown
Member

Description of Change

Fixes #22951

This has been the default for a while at the //net layer https://bugs.chromium.org/p/chromium/issues/detail?id=22532 , the network service configures the default incorrectly. I have reported it in upstream, will update here once I have a response.

Checklist

Release Notes

Notes: enable NTLM v2 for POSIX platforms and added --disable-ntlm-v2 switch to disable it.

@deepak1556
deepak1556 requested a review from a team as a code owner May 29, 2020 09:29
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 29, 2020
@deepak1556
deepak1556 requested a review from a team May 29, 2020 09:29
@deepak1556

deepak1556 commented May 29, 2020 •

Copy link
Copy Markdown
Member Author

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 30, 2020
@deepak1556 deepak1556 removed the wip ⚒ label Jun 1, 2020
@deepak1556

Copy link
Copy Markdown
Member Author

Upstream PR has been merged.

@deepak1556

deepak1556 commented Jun 1, 2020 •

Copy link
Copy Markdown
Member Author

Since this is a breaking change, I will change the PR to keep the default as NTLM v1 for the current release lines, will add a flag --enable-ntlm-v2 for apps and since 11-x-y is a quiet release, will do the same for master. After 11-x-y is branched out will change the default to NTLM v2 and flip the flag to --disable-ntlm-v2

@deepak1556

Copy link
Copy Markdown
Member Author

Looking into this a bit more, NTLM v2 was made default in 68.0.3416.0 which went out with our Electron 4 release. This broke accidentally after network service codepath was used to initialize the http auth preferences since Electron 6. Hence this should be treated as a bug fix rather than breaking change,

Also NTLM v2 is more widely used authentication protocol than v1 if at all NTLM is used. Hence enabling this as default with a flag to disable is a good change.

@deepak1556
deepak1556 requested review from a team and removed request for a team June 2, 2020 17:34
@deepak1556

Copy link
Copy Markdown
Member Author

PR is ready for review. Thanks!

@deepak1556
deepak1556 merged commit 512e154 into master Jun 2, 2020
@release-clerk

release-clerk Bot commented Jun 2, 2020

Copy link
Copy Markdown

Release Notes Persisted

enable NTLM v2 for POSIX platforms and added --disable-ntlm-v2 switch to disable it.

@deepak1556
deepak1556 deleted the robo/ntlm_v2 branch June 2, 2020 19:58
@trop

trop Bot commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "7-3-x" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/7-3-x label Jun 2, 2020
@trop

trop Bot commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "10-x-y", please check out #23916

@trop

trop Bot commented Jun 3, 2020

Copy link
Copy Markdown
Contributor

@deepak1556 has manually backported this PR to "8-x-y", please check out #23933

@trop

trop Bot commented Jun 3, 2020

Copy link
Copy Markdown
Contributor

@deepak1556 has manually backported this PR to "9-x-y", please check out #23934

@trop

trop Bot commented Jun 3, 2020

Copy link
Copy Markdown
Contributor

@deepak1556 has manually backported this PR to "7-3-x", please check out #23935

deepak1556 added a commit that referenced this pull request Jun 7, 2020
…23934)

* build: fix for "enable_desktop_capturer = false" (#23864)

* build: fix filenames autogen with new BUILDFLAG syntax (#23952)

* fix: default to NTLM v2 in the network service for POSIX platforms (#23846)

* chore: update patch

Co-authored-by: Alexey Kuzmin <[email protected]>
Co-authored-by: Samuel Attard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mac OS - HTTP authentication - NTLMv2 authentication not working

3 participants