项目功能差不多都完了  就剩下接口了  要实现域登录  
客户就提供了一个服务器ip  然后LDAP  什么389  输入一个账户 然后看AD里有没有这个用户客户公司是内网  所以登录好像就用户名 没密码求例子 求源码 求知道  求大神  o.o

解决方案 »

  1.   

    http://topic.csdn.net/u/20101224/13/3573bf5b-8061-40e4-917b-c72ca0b0802b.html这个是我找的那个源码
     o.o  管理员 我放的图片怎么了  代码截图而已 干嘛 删我回复
      

  2.   

    不知道要引用哪个dll的话,查msdn,每个类下面都会标出所在的程序集的名称
      

  3.   


    DirectoryEntry root = new DirectoryEntry("LDAP://app.shgbit.com");
    DirectoryEntry gbvision = root.Children.Find("OU=GBVision Computers");
    DirectorySearcher searcher = new DirectorySearcher(gbvision);
    searcher.Filter = "(objectClass=computer)";
    foreach (SearchResult each in searcher.FindAll()) {
    var box = each.GetDirectoryEntry();
    Console.WriteLine(box.Properties["name"].Value);
    }