How to check users against security groups in Active Directory

R

rote

My sceanrio is this on an asp.net 2.0 freamework.
I want to use any of the data controls e.g Gridview,DetailView etc..
But i want some buttons e.g update,edit save etc to be enable or disabled
based on if they belong to some security groups in active
directory.
I'm looking for the best options for this because i want to store those
security groups somewhere and then check for the
user against those security groups for their authorisation when they lunch
the application.
Preferably i would like to store them in an xml file and then write an API
to change, modify or add active directory security groups.
Any ideas would be appreciated.
Thanks
 
M

Michael Nemtsev [MVP]

Hello rote,

Did u consider using standard role-base security with User.IsInRole method?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


r> My sceanrio is this on an asp.net 2.0 freamework.
r> I want to use any of the data controls e.g Gridview,DetailView etc..
r> But i want some buttons e.g update,edit save etc to be enable or
r> disabled
r> based on if they belong to some security groups in active
r> directory.
r> I'm looking for the best options for this because i want to store
r> those
r> security groups somewhere and then check for the
r> user against those security groups for their authorisation when they
r> lunch
r> the application.
r> Preferably i would like to store them in an xml file and then write
r> an API
r> to change, modify or add active directory security groups.
r> Any ideas would be appreciated.
r> Thanks
 
R

rote

Def YES.
But what 'm consideriing is how i'm going to store the AD sceurity GROUPS i
want to validate the users against.
I would like to have
<?xml version="1.0" encoding="ISO-8859-1"?>
<ActiveDirectory>
<groups>Tove</groups>
</note></ActiveDirectory>
then using the IsinRole method i would like to loop through the groups
node..Is that achievable?
 

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top