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; }