473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Groups

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
Nov 20 '05 #1
6 1075
Hi Matt,

http://msdn.microsoft.com/library/de...emsecurity.asp

Did you already look in this class and than isinrole

http://msdn.microsoft.com/library/de...nroletopic.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?
Your help would really be apprecaited!

Thanks

Nov 20 '05 #2
"Matt" <Ma**@discussions.microsoft.com> schrieb
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

Nov 20 '05 #3
Hi Armin,
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.*

http://msdn.microsoft.com/library/de...nroletopic.asp

How would I read this?

Cor
Nov 20 '05 #4
"Cor Ligthert" <no**********@planet.nl> schrieb
Hi Armin,
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.*

http://msdn.microsoft.com/library/de...nroletopic.asp
How would I read this?


Top-Down and left to right?

Or, read it as "I am part of the .Net Framwork class library and I am
neither part of the VB language nor part of the MSVB runtime."

- or what do you mean?
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
> > >>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.*

http://msdn.microsoft.com/library/de...nroletopic.asp

How would I read this?


Top-Down and left to right?

Or, read it as "I am part of the .Net Framwork class library and I am
neither part of the VB language nor part of the MSVB runtime."

- or what do you mean?


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.

Cor
Nov 20 '05 #6
"Cor Ligthert" <no**********@planet.nl> schrieb
- or what do you mean?


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
--
Armin

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
0
by: James | last post by:
Hello All, I am working in a Windows NT domain environment, working with C#. What I want to be able to do is view all the groups a user belongs to, and also be able to add the users to groups. ...
0
by: Mark Broadbent | last post by:
Could someone who has active experience of assigning Security Policys please clarify my follow comments... Having gone through the MSDN documentation on this subject, my condensed version of the...
2
by: Daniel G | last post by:
Hello, I am working at a ASP.NET project that uses authenticate/authorize via Active Directory. There are many groups with different roles. I am unable to 'see' a solution for this kind of...
1
by: j.eckles | last post by:
I'm trying to determine if there is a way in VBScript, perhaps via ADO or DAO, to access what I'll term MS Access "object groups". What I mean by "object groups" are the folders that you see under...
2
by: gary.comstock | last post by:
We have setup 4 NT groups - Executive, Manager, Employee and Contractor. The premise is that an Executive has all of the privileges of Itself plus Manager plus Employee plus Contractor while an...
2
by: Hugo Ferreira | last post by:
Hi! I'm trying to do a search-replace in places where some groups are optional... Here's an example: ('ola', None) ('ola', '') ('ola', 'ole')
12
by: danmcleran | last post by:
All, I can't seem to find an answer to this question anywhere, but I'm still looking. My problem is I have a list of values like this: l = A value with bit 0x80 set delineates the start of...
3
by: IGD | last post by:
I don't know if this is the right place to post this or not. If not, could someone direct me elsewhere where I would find more information on how to solve my problem? Thanks! My problem is this:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.