Application features bases on SD group membership

S

Sameh Ahmed

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.GetCurrent.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top