返回首页

您好,

在Web应用程序,我需要从Active Directory拉出所有的用户,可以有人帮助我,我googled,有这么多的代码,是工作的罚款,可以有人提供这方面的工作代码?早期反应,将不胜感激。

回答

评论会员:游客 时间:2012/02/06
krishna_goluguri下拉出所有的用户从活动目录方式,请简要描述您的问题
Chethan TR
评论会员:游客 时间:2012/02/06
我要列出从AD/搜索所有的用户名
SwingSwis
评论会员:游客 时间:2012/02/06
请参考这个链接:imgsrc=]
Chethan T R:你好,感谢你的帮助

domain1 = new DirectoryEntry("LDAP://lnties.com/DC=dept1,DC=com", "domainadmin", "12345", AuthenticationTypes.ReadonlyServer);

 

in the above line, i dont have "domainadmin" and "12345"(password), since its a overload method, i am passing "LDAP://lnties.com/DC=dept1,DC=com" as parameter.

 

its throwing an error "A referral was returned from the server." in the code line "results1 = searcher1.FindAll();"

可以请在此建议?

提前感谢
评论会员:SwingSwis 时间:2012/02/06
嘿其做工精细,非常感谢,有些我怎么修复它能够让用户从AD,我有一个小问题,只有1000名,任何想法,这是为什么?| chethan TR
评论会员:答案thnks,{A1}用它 时间:2012/02/06