473,395 Members | 1,656 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,395 software developers and data experts.

Application features bases on SD group membership

Hello there
I am working on an application in which I have to allow certain features
based on Active directory group memberships.
so on the Form Load event, I get the user running the application using
"System.Security.Principal.WindowsIdentity.GetCurr ent.Name", then I Search
for this user in active directory and get his group memberships and compare
them to the group allowed to run the application.
This works fine, but the problem is that the user must be a member of this
group explicitly, and not a member in a group that is a member in the
allowed group.
is there a way to check if a user is a member of a group explicitly or
implicitly (Nested group)?
Thanks in advance
Regards
Sameh
Nov 21 '05 #1
1 1225
Sorry I meant AD (Active directory) group membership not SD
"Sameh Ahmed" <es******@hotmail.com> wrote in message
news:O0*************@TK2MSFTNGP12.phx.gbl...
Hello there
I am working on an application in which I have to allow certain features
based on Active directory group memberships.
so on the Form Load event, I get the user running the application using
"System.Security.Principal.WindowsIdentity.GetCurr ent.Name", then I Search
for this user in active directory and get his group memberships and
compare them to the group allowed to run the application.
This works fine, but the problem is that the user must be a member of this
group explicitly, and not a member in a group that is a member in the
allowed group.
is there a way to check if a user is a member of a group explicitly or
implicitly (Nested group)?
Thanks in advance
Regards
Sameh

Nov 21 '05 #2

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

Similar topics

2
by: Keith Jakobs, MCP | last post by:
Greetings: I had seen several posts around the Internet about this issue from a few months back, but have been unable to find a resolution ... I have a user who is trying to get started with...
7
by: Sameh Ahmed | last post by:
Hello there IsInrole gives ya the means to check if the current or impersonated user belongs to a specific windows role or group. is there a way to do the same without using ADSI to check if...
3
by: mateo | last post by:
Hello i would like to have advices on an ASP.NET 2 application that i must develop. I'm new to ASP.NET, i am more of WinApp developper, so if there is some experienced folks out there all advices...
17
by: TC | last post by:
In the past I always regarded user/group security as fairly tight. It is tricky to implement, but once implemented properly, it can't be cracked except through a dedicated effort. Recently,...
4
by: MrBlueSky | last post by:
Hello! I've just finished working on my first Python app (a Tkinter-based program that displays the content of our application log files in graphical format). It was a great experience that's...
1
by: Mike | last post by:
Hi: I have been trying to create a web application that provides suport for two membership/profile databases: one for private users and one for another set of users. These tw user have a...
3
by: Andy Fish | last post by:
Hi, I am trying to figure out how to use asp.net membership providers for my vs2005 web project. unfortunately the only walkthrough in MSDN uses the "Web Site Administration Tool" to configure...
4
by: Paul.Pucciarelli | last post by:
So I have some 'groups' which 'users' can join. There is no enrollment limit on these 'groups'. How should I store the list of users enrolled in the group? I'd like to be able to quickly...
2
by: Andy B | last post by:
I have a database with asp.net membership inside it. How would I use it for 2 or more web applications at the same time?
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:
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
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.