I am wanting to allow access to a C# Webpage to only members in an Active Directory group. Can someone please point me in this direction or assist in anyway?
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can query AD to see what groups a user belongs to.
This is a great resource:
http://www.codeproject.com/KB/system/everythingInAD.aspx#39
Something like this should work too:
I didn’t have time to check this or even compile, so I apologize in advance for any error. The
ifin theforeachmight not be sufficient. There also may be a more efficient way to do the query, but this was what I could come up with quickly.