Skip to content

Commit

Permalink
Correct domainSid cache key in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
definitelynotagoblin committed Jun 10, 2024
1 parent a370dc6 commit 3f3eebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommonLib/LDAPUtilsNew.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3f3eebd

Please sign in to comment.