From 3f3eebda18561fd6ef98b962681cf46335efda60 Mon Sep 17 00:00:00 2001 From: anemeth Date: Mon, 10 Jun 2024 11:59:55 -0700 Subject: [PATCH] Correct domainSid cache key in utils --- src/CommonLib/LDAPUtilsNew.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommonLib/LDAPUtilsNew.cs b/src/CommonLib/LDAPUtilsNew.cs index 1586db8f..66c90b42 100644 --- a/src/CommonLib/LDAPUtilsNew.cs +++ b/src/CommonLib/LDAPUtilsNew.cs @@ -237,7 +237,7 @@ private bool GetCachedConnection(string domain, bool globalCatalog, out LdapConn if (GetDomainSidFromDomainName(domain, out var domainSid)) { - if (_ldapConnectionCache.TryGet(_ldapConfig.Server, globalCatalog, out connection)) + if (_ldapConnectionCache.TryGet(domainSid, globalCatalog, out connection)) { return true; }