Solved

Use Active Directory users in ASP.net Roles

Posted on 2008-06-10
2
1,036 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 250 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 250 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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