Directory Services - searching for users/groups

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?
 
P

proxyuser

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?
 
M

Marc Scheuner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top