Active Directory searching
Posted on 2005-05-01
I need help accomplishing doing a search in the Active Directory. I need to check if a user exists in the AD with a specified email address.
Since I have no knowledge at all of this, I might as well ask it here :)
What I did was:
DirectoryEntry entry = null; DirectorySearcher mySearcher = null;
entry = new DirectoryEntry();
mySearcher = new DirectorySearcher(entry);
mySearcher.Filter = .....;
How can I check if a user exists when I only have an email address? Do I need to take on a completely different approach?