You can check the user against known Windows group names by using
WindowsPrincipal's IsInRole method. Retrieving unknown group names
(which sounds like the case here) may pose more of a problem for you. If
you're on a Win2K network you may have access to Active Directory
services, and you could then take advantage of the functionality offered
by the System.Directory namespace. Without Active Directory I believe
your answer becomes more elusive (maybe others can offer potential
solutions in this case).
Sabin,
as mike stated, checking this out without AD is different. for AD searches
and queries you use the DirectorySearcher class (under the DirectoryServices
namespace) using the LDAP protocol. for non-AD queries, use the same calss
with the WinNT protocol.
for a quick start, look for the DirectoryEntry.Path Property on the MSDN
help.
Picho
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.