Solved

Use Active Directory users in ASP.net Roles

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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