代码改变世界

随笔档案-2009年1月9日

C# 获取 域(AD) 用户信息

2009-01-09 12:57 by 闫妍, 629 阅读, 收藏,
摘要: c#在域环境下,获取 AD 用户信息。 Code //域名例如:finehappy.com 域名一定要写对,否则获取不到数据System.DirectoryServices.DirectoryEntry entry = new System.DirectoryServices.DirectoryEntry("LDAP://" + domainName); System... 阅读全文