From 71c770fcbaf832fd88a3537310834bf34c7d9dd0 Mon Sep 17 00:00:00 2001 From: Tim Medin Date: Fri, 18 Apr 2025 14:05:04 -0500 Subject: [PATCH] explicit context options to prevent duplicate validation attempts --- SharpHose/Nozzles/LDAP/LDAPNozzle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharpHose/Nozzles/LDAP/LDAPNozzle.cs b/SharpHose/Nozzles/LDAP/LDAPNozzle.cs index 4ffa595..143f2b7 100644 --- a/SharpHose/Nozzles/LDAP/LDAPNozzle.cs +++ b/SharpHose/Nozzles/LDAP/LDAPNozzle.cs @@ -284,7 +284,7 @@ private async Task TryCredentialsAsync(string username, string password) { using (var context = GetPrincipalContext()) { - return context.ValidateCredentials(username, password); + return context.ValidateCredentials(username, password, ContextOptions.Negotiate | ContextOptions.Signing | ContextOptions.Sealing); } }); }