
April 5th, 2004, 10:44 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Import Active Directory
Hi,
I want to import all objects in the active directory but for some reason i am able to import only one domain objects.
I am using c# and LDAP and the code written by me is:
DirectoryEntry de = new DIrectoryEntry(LDAP://<domain name>)
DirectorySearcher dser = new DirectorySearcher(de);
dser.FindAll();
foreach(Search se in desr)
{
DirectoryEntry de = new DIrectoryEntry();
Console.WriteLine(de.Properties["sn"].Value.TOString());
}
|