Directory Services - searching for users/groups

  • Thread starter Thread starter proxyuser
  • Start date Start date
P

proxyuser

I'm a little confused about some Active Directory properties used for
searching. If I'm looking for a list of all users defined, what is the
difference between using these 2 filters with DirectorySearcher?

DirectorySearcher searcher = new DirectorySearcher(...);
searcher.Filter = "(objectCategory=person)";
searcher.Filter = "(objectClass=user)":

Or is there some other way to search?

Also, given some group, how would I find the users in that group?
 
proxyuser said:
I'm a little confused about some Active Directory properties used for
searching. If I'm looking for a list of all users defined, what is the
difference between using these 2 filters with DirectorySearcher?

DirectorySearcher searcher = new DirectorySearcher(...);
searcher.Filter = "(objectCategory=person)";
searcher.Filter = "(objectClass=user)":

Or is there some other way to search?

Also, given some group, how would I find the users in that group?

Is there a better forum for this question?
 
Is there a better forum for this question?

Yes - microsoft.public.adsi.general or
microsoft.public.active.directory.interface - that's where the gurus
hang out :)

Marc
 
Back
Top