How do I check that a User is in a Security Group

N

nate axtell

I found the DirectoryServices in the System namespace which I believe is
what I need to see if the logged in user to my VB .NET application is in a
specific group in active directory. I'm not sure how to specificy or find
the entry path, either LDAP://... or WinNT://... I have the user selecting
the server machine and then database that they want to connect to. The
server can be on a different domain and also is not neccessarily a domain
controller. Is there a way to find the LDAP path? And if there are a ton
of users and groups to search through in the Act.Dir. tree should I use
WinNT instead?
 
K

Ken Tucker [MVP]

Hi,

http://msdn.microsoft.com/library/d...incipalwindowsprincipalclassisinroletopic.asp

Ken
-----------------
"nate axtell" <naxtell at progeny dot net> wrote in message
I found the DirectoryServices in the System namespace which I believe is
what I need to see if the logged in user to my VB .NET application is in a
specific group in active directory. I'm not sure how to specificy or find
the entry path, either LDAP://... or WinNT://... I have the user selecting
the server machine and then database that they want to connect to. The
server can be on a different domain and also is not neccessarily a domain
controller. Is there a way to find the LDAP path? And if there are a ton
of users and groups to search through in the Act.Dir. tree should I use
WinNT instead?
 

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