Ejemplo n.º 1
0
        public List<AdUser> GetDomainUsers()
        {
            var activeDirUsers = new AdUserProvider(db.Settings.First().Domain).GetAllUsers(); ;

            // activeDirUsers.RemoveAll(u => u.sAMAccountType != 805306368 || currentUsers.Any(usr => usr.Login.Remove(0, DOMAIN_PREFIX.Length) == u.Login));
            activeDirUsers.RemoveAll(u => u.sAMAccountType != 805306368);
            //!Regex.IsMatch(u.CN.Substring(0, 1), "[А-Яа-я]")

            return activeDirUsers.OrderBy(u => u.CN).ToList();
        }
Ejemplo n.º 2
0
 public OneCController()
 {
     db = new EfDbContext();
     provider = new AdUserProvider(db.Settings.First().Domain);
 }