using Disco.Data.Repository; using System; using System.Collections.Generic; using System.ComponentModel; namespace Disco.Data.Configuration.Modules { public class ActiveDirectoryConfiguration : ConfigurationBase { public ActiveDirectoryConfiguration(DiscoDataContext Database) : base(Database) { } public override string Scope { get { return "ActiveDirectory"; } } public Dictionary> SearchContainers { get { return Get>>(null); } set { Set(value); } } [Obsolete("User SearchAllServers instead"), EditorBrowsable(EditorBrowsableState.Never)] public bool? SearchAllForestServers { get { return Get(null); } set { Set(value); } } public bool? SearchAllServers { get { var value = Get(null); /// migrate #pragma warning disable CS0618 // Type or member is obsolete if (value == null) { value = SearchAllForestServers; if (value != null) { SearchAllForestServers = null; SearchAllServers = value; } } #pragma warning restore CS0618 // Type or member is obsolete return value; } set { Set(value); } } /// /// If true LDAP filters contain wildcards only at the end of the search term. /// This greatly improves performance in very large AD environments (ie: EDU001/EDU002) /// public bool SearchWildcardSuffixOnly { get { return Get(true); } set { Set(value); } } } }