Пример #1
0
        public void DoConvert()
        {
            ServerInfo serverInfo = ServerInfoConfigSettings.GetConfig().ServerInfos["dc"].ToServerInfo();

            for (int i = 0; i < ADSyncGroupSettings.GetConfig().GroupConfigurations.Count; i++)
            {
                GroupConfigurationElement element = ADSyncGroupSettings.GetConfig().GroupConfigurations[i];
                AccreditHelper.SyncGroupMembers(element.SourceDN, element.DestinationPath, serverInfo);
            }
        }
Пример #2
0
        public static ADSyncGroupSettings GetConfig()
        {
            ADSyncGroupSettings settings = (ADSyncGroupSettings)ConfigurationBroker.GetSection("adSyncGroupSettings");

            if (settings == null)
            {
                settings = new ADSyncGroupSettings();
            }

            return(settings);
        }