Exemplo n.º 1
0
        public List <string> GetMissingItem(SearchType searchType)
        {
            List <string> output = new List <string>();

            switch (searchType)
            {
            default:
                return(null);

            case SearchType.DistinguishedName:
                output.AddRange(CNToInvestigate);
                CNToInvestigate.Clear();
                return(output);

            case SearchType.Sid:
                output.AddRange(SIDToInvestigate);
                SIDToInvestigate.Clear();
                return(output);

            case SearchType.PrimaryGroupId:
                output.AddRange(PGIdToInvestigate.ConvertAll(x => x.ToString()));
                KnownPGId.AddRange(PGIdToInvestigate);
                PGIdToInvestigate.Clear();
                return(output);
            }
        }
Exemplo n.º 2
0
        public List <string> GetSIDToInvestigate()
        {
            List <string> output = new List <string>();

            output.AddRange(SIDToInvestigate);
            SIDToInvestigate.Clear();
            return(output);
        }