473,386 Members | 1,712 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.

HELP ! How to check user against group ????

I am developing an asp.net website with windows
authentification and I want to check to which group the
user belongs. I know how to check for the user that has
logged in and to see if he belongs to a group that was
predefined by windows but I need to know all the groups
he belongs to (also the ones that I created myself).

Please help me with this, I'm going crazy !

Thanks,

Jeroen

Nov 20 '05 #1
2 1703
"Jeroen" <j.****@aquadis.nl> wrote in message
news:3b****************************@phx.gbl...
I am developing an asp.net website with windows
authentification and I want to check to which group the
user belongs. I know how to check for the user that has
logged in and to see if he belongs to a group that was
predefined by windows but I need to know all the groups
he belongs to (also the ones that I created myself).


You'll want to use the DirectoryServices namespace in the framework. Giving
you a complete understanding of the Active Directory and LDAP knowledge
you'd need to do this is beyond the scope of what I can offer in a Usenet
response, but I can direct you to the help section of the Framework
documentation that explains it - use this URL:

ms-help://MS.NETFrameworkSDK/cpref/html/frlrfSystemDirectoryServices.htm
Nov 20 '05 #2
* "Richard K Bethell" <so*****@spammingisevil.bad> scripsit:
I am developing an asp.net website with windows
authentification and I want to check to which group the
user belongs. I know how to check for the user that has
logged in and to see if he belongs to a group that was
predefined by windows but I need to know all the groups
he belongs to (also the ones that I created myself).


You'll want to use the DirectoryServices namespace in the framework. Giving
you a complete understanding of the Active Directory and LDAP knowledge
you'd need to do this is beyond the scope of what I can offer in a Usenet
response, but I can direct you to the help section of the Framework
documentation that explains it - use this URL:

ms-help://MS.NETFrameworkSDK/cpref/html/frlrfSystemDirectoryServices.htm


Online version:

<http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdirectoryservices.asp>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

18
by: | last post by:
Please help. After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff. What I...
7
by: OBJECT MODULE, INC. | last post by:
table 1 APP_ID 1 3 table 2
8
by: Johnny | last post by:
I need to determine whether a text box contains a value that does not convert to a decimal. If the value does not convert to a decimal, I want to throw a MessageBox to have the user correct the...
4
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
9
by: Sameh Ahmed | last post by:
Hello there Is there a way through dotNet to check if a certain user is a member of a specific group? I use ADSI to get the memberships of the user then compare them to the group I want to check,...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
19
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: ...
3
by: sunbeam | last post by:
Short Description of the Project: we developed a e-learning system for our students. each student has a unique username/password to view the modules he/she should view and nothing more. since we...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.