Windows Authentication with Asp.net and against Active Directory

P

Patrick

How can i use Windows authentication in IIS against AD.
How will i create a WindowsPrincipal object(with asp.net) in the
Context.User property that is used for providing identity and authorization
services to my application.
How will i use the IsInRole method in WindowsPrincipal to return true or
false based on the user's AD group membership.
If u have any code articles and resources please pass it over
 
P

Paul Glavich [MVP - ASP.NET]

In IIS, disable anonymous auth, enabled Windows Integrated Auth
In Web.config have something like :-
<identity impersonate="true" />
<authorization>
<allow roles="DOMAIN\DomainGroup" />
<deny users="*" />
</authorization>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top