From e4798c5524f0026065782137f9f647ed6dc0b1b9 Mon Sep 17 00:00:00 2001 From: Medha Tiwari Date: Tue, 16 Jun 2026 20:33:21 +0530 Subject: [PATCH] Use managed NTLM on RHEL 8 to fix NegotiateAuthentication test failures --- .../tests/UnitTests/NegotiateAuthenticationTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Security/tests/UnitTests/NegotiateAuthenticationTests.cs b/src/libraries/System.Net.Security/tests/UnitTests/NegotiateAuthenticationTests.cs index 5d935adf128b5f..02fa64e8fb717f 100644 --- a/src/libraries/System.Net.Security/tests/UnitTests/NegotiateAuthenticationTests.cs +++ b/src/libraries/System.Net.Security/tests/UnitTests/NegotiateAuthenticationTests.cs @@ -19,7 +19,8 @@ namespace System.Net.Security.Tests public class NegotiateAuthenticationTests { // Ubuntu 24 and 26 ship with broekn gss-ntlmssp 1.2 - private static bool UseManagedNtlm => PlatformDetection.IsUbuntu24 || PlatformDetection.IsUbuntu26 || PlatformDetection.IsOpenSUSE16; + // RHEL 8 ships gss-ntlmssp 1.2 built against OpenSSL 1.1 which produces broken NTLM responses + private static bool UseManagedNtlm => PlatformDetection.IsUbuntu24 || PlatformDetection.IsUbuntu26 || PlatformDetection.IsOpenSUSE16 || (PlatformDetection.IsRedHatFamily && !PlatformDetection.IsOpenSsl3); private static bool IsNtlmAvailable => UseManagedNtlm || Capability.IsNtlmInstalled() || OperatingSystem.IsAndroid() || OperatingSystem.IsTvOS(); private static bool IsNtlmUnavailable => !IsNtlmAvailable;