Skip to content

Mac OS - HTTP authentication - NTLMv2 authentication not working #22951

Closed

Description

@christophpre

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 6.1.9, 7.2.1, 8.2.0, 9.0.X
  • Operating System:
    • macOS 10.15.4
  • Last Known Working Electron version:
    • Never

Expected Behavior

  1. When authenticating via HTTP authentication and Proxy/Server only allows NTLMv2, authentication should work.
  2. When authenticating via HTTP authentication and Proxy/Server negotiates protocol and allows NTLMv1 and NTLMv2, Electron should always use NTLMv2.

Actual Behavior

  1. When authenticating via HTTP and the Proxy/Server only allows NTLMv2 and 'login' event is triggered in Electron and Password/Username is entered correctly, authentication does not work. Windows Event Log Error Code 0xc000006d / Substatus 0xc000006a (https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4625)
  2. When authenticating via HTTP authentication and Proxy/Server negotiates protocol, Electron always uses NTLMv1.

To Reproduce

  1. Configure all Domain Controllers for Windows server to only allow NTLMv2
  2. Try to authenticate with correct credentials via Electron 'login'-Event
    -> 'login'-Event in Electron is triggered again and the described Error Codes can be seen in Windows Event Log

Screenshots

image
image

Additional Information

  • This issue NTLM/Kerberos not working in Electron 4.0.x #17111 states, that Chrome should use NTLMv2 per default since Chromium 65
  • NTLMv2 in Electron works on Windows 10 Version 1903 (OS Build 18362.476)
  • NTLMv2 is used and works per default on Chromium Browser Version 80.0.3987.158, which is used in current stable Electron Version 8.2.0, where it does not work

Activity

  1. christophpre commented on Apr 22, 2020

    @christophpre
    Author

    Any news on this?

  2. deepak1556 commented on Apr 22, 2020

    @deepak1556
    Member

    Sorry I couldn't get time to PR this yet, but the cause is simple NTLMv2 was only enabled in chrome https://source.chromium.org/chromium/chromium/src/+/master:chrome/common/chrome_features.cc;l=517

    The default value for embedders on posix platform is disabled https://source.chromium.org/chromium/chromium/src/+/master:services/network/public/mojom/network_service.mojom;l=155

    Hence this never worked on any electron versions before, I will have to enable this on older versions behind a flag. Will try to do this sometime later this week.

  3. rizi commented on May 12, 2020

    @rizi

    @deepak1556 any update on this? I also suffer from this bug.
    thx in advance

  4. christophpre commented on May 25, 2020

    @christophpre
    Author

    @deepak1556 Sry to ask again. Do you have any timeline, when this bug can be addressed?

  5. deepak1556 commented on May 28, 2020

    @deepak1556
    Member

    Working on a PR now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions