WinXP/Win7/WinServer2003 環境の VS2008 で C# を使用しています。
LDAP を使用せずに Active Directory を検索する方法はありますか?
Active Directory でユーザーを作成しましたが、これを使用して検索すると
DirectorySearcher dirSearcher = new DirectorySearcher(
new DirectoryEntry("LDAP://DC=kmmnet,DC=com"),
"(objectClass=user)",
new string[] { "sAMAccountName", "displayname", "givenname", "sn" });
foreach (SearchResult s in dirSearcher.FindAll())
{
System.DirectoryServices.PropertyCollection p = s.GetDirectoryEntry().Properties;
}
一部のユーザーを見つけることができません。
ありがとうショーン