Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Forms Authentication / Role based security

Reply
Thread Tools

Forms Authentication / Role based security

 
 
djhexx@gmail.com
Guest
Posts: n/a
 
      08-09-2007
Is it possible to do role based security using AD groups in
conjunction with Forms authentication? If so, how? I've seen people
talk about using AzMan to solve this problem...but is there an easier
way?

Right now we have a site that uses Windows authentication and role
based security to lock down folders. When the user logs in, the Menu
control hides nodes the user doesn't have access to. When I turn on
forms authentication I get this error:

Method is only supported if the user name parameter matches the user
name in the current Windows Identity


Here is part of the web.config:

<authentication mode="Forms">
<forms loginUrl="login.aspx" name="intranet" timeout="90"
slidingExpiration="false" />
</authentication>


<authorization>
<allow roles= AN OU />
<deny users="*"/>
</authorization>


<membership
defaultProvider="AspNetActiveDirectoryMembershipPr ovider">
<providers>

<add
connectionProtection="Secure"
name="AspNetActiveDirectoryMembershipProvider"
connectionStringName="ADConnectionString"
connectionUsername= A USER NAME
connectionPassword= A PASSWORD
attributeMapUsername="sAMAccountName"
type="System.Web.Security.ActiveDirectoryMembershi pProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken= A PUBLIC KEY TOKEN/>
</providers>
</membership>


<roleManager enabled="true"
defaultProvider="AspNetWindowsTokenRoleProvider"/>

 
Reply With Quote
 
 
 
 
djhexx@gmail.com
Guest
Posts: n/a
 
      08-10-2007
Anyone?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Role based security with forms authentication Prashant ASP .Net Security 1 07-07-2007 07:09 PM
AzMan Role Based Security vs. ASP.NET Role Based Security Kursat ASP .Net Security 1 05-07-2007 01:33 PM
.NET forms authentication role-based redirection? Cory Lievers ASP .Net 2 02-22-2006 04:55 PM
Role-Based Security: ACLs and Role Hierarchies Liet Kynes ASP .Net 0 11-26-2003 08:08 AM
Role-based security: Access the role of current user Jesper Stocholm ASP .Net 2 08-23-2003 06:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57