Skip to content

NET8 WcfClient (net-tcp binding) running on linux cannot be authenticated on WCF Server hosted on windows if UseManagedNtlm is set #99227

Closed
@AlexanderUsmanov

Description

@AlexanderUsmanov

Description

Hello!
I found problem while trying to connect to WCF service hosted on Windows over net-tcp connection using WCF client on linux with windows local user credentials. Problem occurs just when switch System.Net.Security.UseManagedNtlm is set to true. Otherwise it working on ubuntu 20.04. On ubuntu 22.04 and higher there is known issue with OpenSSL 3+ (see #67353) and in this case it working just with workaround described here #67353 (comment).

I also tried to apply fix from #95725 but it doesn't work for me.
Is it any chance to get fix for this problem on net8?

Reproduction Steps

Here is repository with reproduction solution and steps: https://github.com/AlexanderUsmanov/WcfClientNet8-issue

Expected behavior

Managed NTLM working

Actual behavior

Managed NTLM failing

Regression?

No response

Known Workarounds

Use unmanaged implementation which working just in case of OpenSSL version < 3.0 (because in OpenSSL with version 3 and higher md4 was marked as deprecated).

Configuration

Client:

  • .Net version: Net8
  • OS: ubuntu 20.04
  • Architecture: x64

Server:

  • .Net version: Net Framework 4.7.2
  • OS: Windows 10
  • Architecture: x64

WCF binding: net-tcp

Other information

I have captures of traffic using both managed and unmanaged ntlm authentication over net-tcp
Captures.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions