Groups

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am wanting to make a login for my VB app. Basically what I want to do is have a user enter their username and click "login". When they do this, the program binds to the user in AD and checks to see if it is a member of a particular group within Active Directory. I have everything working except for how to check if a user is a member of a group. Does anyone know an easy way to do this?

Your help would really be apprecaited!

Thanks
 
Hi Matt,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurity.asp

Did you already look in this class and than isinrole

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

I hope this helps?

Cor
I am wanting to make a login for my VB app. Basically what I want to do is
have a user enter their username and click "login". When they do this, the
program binds to the user in AD and checks to see if it is a member of a
particular group within Active Directory. I have everything working except
for how to check if a user is a member of a group. Does anyone know an easy
way to do this?
 
Matt said:
I am wanting to make a login for my VB app. Basically what I want to
do is have a user enter their username and click "login". When they
do this, the program binds to the user in AD and checks to see if it
is a member of a particular group within Active Directory. I have
everything working except for how to check if a user is a member of a
group. Does anyone know an easy way to do this?

There's no built-in VB.Net command. Maybe you'll get an answer in one of the
..Net Framework groups:
microsoft.publc.dotnet.framework.*


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Cor Ligthert said:
I mean in the link, there is written how to know if a user is a
member of a windows group.

But I never tested it so maybe it is not for the AD, however it is
all VB.language code.

Ok
 
Back
Top