예제 #1
0
        public void Synchronize()
        {
            var qpGroups = UserGroupRepository.GetNtGroups().ToList();
            var adGroups = GetAdGroupsToProcess(qpGroups);
            var adUsers  = _activeDirectory.GetUsers(adGroups);
            var qpUsers  = UserRepository.GetNtUsers();

            AddUsers(adUsers, adGroups, qpUsers, qpGroups);
            UpdateUsers(qpUsers, adUsers, adGroups, qpGroups);
            DisableUsers(qpUsers, adUsers);
        }
예제 #2
0
        public void Synchronize()
        {
            QPContext.CurrentUserId = settings.DefaultUserId;
            var qpGroups = UserGroupRepository.GetNtGroups().ToList();
            var adGroups = GetAdGroupsToProcess(qpGroups);
            var adUsers  = _activeDirectory.GetUsers(adGroups);
            var qpUsers  = UserRepository.GetNtUsers();

            AddUsers(adUsers, adGroups, qpUsers, qpGroups);
            UpdateUsers(qpUsers, adUsers, adGroups, qpGroups);
            DisableUsers(qpUsers, adUsers);
        }