?
Solved

Use Active Directory users in ASP.net Roles

Posted on 2008-06-10
2
Medium Priority
?
1,039 Views
Last Modified: 2008-06-11
I have an ASP.NET (3.5) application that uses Windows Authentication.  Now I want to set authoritzation based on ASP.Net roles.  I used the ASP.NET Configuration tool to create the roles and I know how to specify that a role has authority to a page.  What I don't know how to do is add Active Directory users to the roles.  Is there a way to do this?  Can it be done using the ASP.Net Configuration tool?
0
Comment
Question by:weimha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 33

Accepted Solution

by:
raterus earned 1000 total points
ID: 21752956
Doubt it, open up "Active Directory Users and Groups", on the domain controller, find a group you are interested in, and add users there.

Then in web.config, hopefully you have something like this

<authorization>
      <allow roles="MYDOMAIN\Some_Group_Name"/>
      <deny users="*"/>
</authorization>
0
 
LVL 20

Assisted Solution

by:brwwiggins
brwwiggins earned 1000 total points
ID: 21755500
I agree with raterus. You're mixing AD authentication with forms authentication. Best thing to do is use groups in AD which act the same as roles with forms authentication.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question