Ejemplo n.º 1
0
        public static List <LDAPUser> SearchUsers(string pattern)
        {
            var filter = ConfigurationManager.AppSettings["ldapEmployeeFilter"];

            var provider = new LdapProvider("LDAP://DC=TODO");

            return(provider.GetUsers(filter));
        }
Ejemplo n.º 2
0
        public static List <LDAPUser> SearchUsersByGroup(string group)
        {
            var provider = new LdapProvider(LDAPHelper.LDAPPath);

            var members = provider.GetMembersOfGroup(group).ToList();

            return(members);
        }