Solved

Use Active Directory users in ASP.net Roles

Posted on 2008-06-10
2
1,027 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
2 Comments
 
LVL 33

Accepted Solution

by:
raterus earned 250 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now