Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Authentication to Forms

Status
Not open for further replies.

JimmyFo

Programmer
Feb 14, 2005
102
US
Hi, I want to use the Windows authentication mechanism in the Web.Config to make sure the users are authenticated against a particular Windows group, like:

Code:
    <authentication mode="Windows">
    </authentication>
    <authorization>
      <allow roles="DOMAIN\WINDOWSGROUP" />
      <deny users="*"/>
    </authorization>

I would also like to use the ASP.Net Forms authentication, in that if they are validated against this group, they are automatically validated against the aspnetdb database, that has all the user roles etc. Is there a way to do this? I would like to be able to use the role providers that comes with ASP, but I have to use the Windows authentication, and only for one domain group. Any ideas?

Thanks,
James
 
hi,

is this what you are trying to do:
1. use windows authentication
2. get roles from membership database for access rights
???

Known is handfull, Unknown is worldfull
 
Hi, yes, that is exactly what I am trying to do. I really only have experience using the roleProvider and membershipProvider to limit access, and this item requires Windows Authentication. So I'm trying to use that (Windows Authentication), but still be able to use roles, etc, without extra domain groups.

Thanks,
James
 
here is an article by Scott Gu on the subject.
This MSDN article discusses how to intergrate forms authentication with AD.
finally, some google results on the subject

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top