protected virtual ADServerInfo GetDefaultServerInfo(string partitionFqdn) { string serverFqdn = null; if (partitionFqdn.Equals(TopologyProvider.LocalForestFqdn, StringComparison.OrdinalIgnoreCase) && NativeHelpers.LocalMachineRoleIsDomainController()) { serverFqdn = NativeHelpers.GetLocalComputerFqdn(false); } return(new ADServerInfo(serverFqdn, partitionFqdn, this.DefaultDCPort, null, 100, AuthType.Kerberos, true)); }
internal LdapTopologyProvider() { this.localServerFqdn = NativeHelpers.GetLocalComputerFqdn(false); this.topologies = new ConcurrentDictionary <string, LdapTopologyProvider.MiniTopology>(StringComparer.OrdinalIgnoreCase); }