473,566 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

I am developing an asp.net website with windows
authentificatio n 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 1713
"Jeroen" <j.****@aquadis .nl> wrote in message
news:3b******** *************** *****@phx.gbl.. .
I am developing an asp.net website with windows
authentificatio n 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 DirectoryServic es 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.NETFramework SDK/cpref/html/frlrfSystemDire ctoryServices.h tm
Nov 20 '05 #2
* "Richard K Bethell" <so*****@spammi ngisevil.bad> scripsit:
I am developing an asp.net website with windows
authentificatio n 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 DirectoryServic es 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.NETFramework SDK/cpref/html/frlrfSystemDire ctoryServices.h tm


Online version:

<http://msdn.microsoft. com/library/en-us/cpref/html/frlrfsystemdire ctoryservices.a sp>

--
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
2452
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 need: A system whereby the user only has to register ONCE and he will have automatic entry to ANY page without havinto to RE-LOGIN even if he...
7
1840
by: OBJECT MODULE, INC. | last post by:
table 1 APP_ID 1 3 table 2
8
2972
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 value in the text box. I have the following code but when the user enters a decimal value the Regex.IsMatch catches it (ex. 250.50 should be allowed,...
4
2268
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 companies on a form. 3 of the companies have common employees. I have a table that looks like this:
9
3752
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, but this way the user has to be a member of this group directly and if he is a member of a group that is a member of that group he will not be...
1
3698
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 attach this script files and inq files. I cant understand this error. Please suggest me. You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am...
19
8266
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/9ae1c9d419264380/125a82c9be127790?lnk=st&q=checking+html+form++(updated+OR+edited+OR+changed)&rnum=28&hl=en#125a82c9be127790 suggests that you attach onChange event handlers to every...
3
5604
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 want to give them the opportunity to run these modules from home as well, we are trying to get the USERNAME/COMPUTERNAME as well, so the students, when...
0
5542
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.