How to enumerate domain users, groups, etc

From: Igor (ikr@affsys.com)
Date: 09/20/02


From: "Igor" <ikr@affsys.com>
Date: Fri, 20 Sep 2002 15:30:49 -0400


Hi guys,

I am about to write a web application where I'll need to identify what
domain groups a user belongs to (besides Administrators, etc... all
predefined groups).

I am using "Basic authentication" with identity impersonate = "true" in the
web.config.
I can get user's windows identity and token. I can get Principal as well.
What is next?

Is there any way to find which one of the domain groups the user belongs to?
Is there any examples how to enumerate domain users, groups, etc...?

There is no Active Directory and the Domain controller is Windows NT 4.0
machine.

Thanks in advance,
Igor