472,146 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 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 1626
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by OBJECT MODULE, INC. | last post: by
8 posts views Thread by Johnny | last post: by
9 posts views Thread by Sameh Ahmed | last post: by
1 post views Thread by Rahul | last post: by
19 posts views Thread by Taras_96 | last post: by
reply views Thread by Saiars | last post: by

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.