diff --git a/src/CommonLib/LdapConnectionPool.cs b/src/CommonLib/LdapConnectionPool.cs index 813f5f08..5ec804e5 100644 --- a/src/CommonLib/LdapConnectionPool.cs +++ b/src/CommonLib/LdapConnectionPool.cs @@ -31,6 +31,8 @@ internal class LdapConnectionPool : IDisposable{ private const int BackoffDelayMultiplier = 2; private const int MaxRetries = 3; private static readonly ConcurrentDictionary DCInfoCache = new(); + + // Tracks domains we know we've determined we shouldn't try to connect to private static readonly ConcurrentHashSet _excludedDomains = new(); public LdapConnectionPool(string identifier, string poolIdentifier, LdapConfig config, PortScanner scanner = null, NativeMethods nativeMethods = null, ILogger log = null) {