Re: ActiveDirectoryMembershipProvider - IsInRole problem
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 19:37:25 +0000 (UTC)
is the problem on the other thread resolved??
There is no ActiveDirectoryRolesProvider - the roles are not populated from AD...thats why IsInRole fails.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi;
For forms/ActiveDirectoryMembershipProvider authentication, I get an
authenticated user but IsInRole fails. I am getting a FormsIdentity
where authentication-"Forms" and name="dave". I do have to enter my
domain password for it to login.
web.config:
<roleManager enabled="true"/>
<authentication mode="Forms">
<forms name=".ADAuthCookie" loginUrl="login.aspx">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<membership defaultProvider="MyProvider">
<providers>
<clear/>
<add name="MyProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADService"
attributeMapUsername="SAMAccountName"
/>
</providers>
</membership>
.
- Prev by Date: RE: Best way to provide security when need a WindowsIdentity
- Next by Date: Re: Impersonation in ASP.NET 2.0 (works from XP, not 2003)
- Previous by thread: Impersonation in ASP.NET 2.0 (works from XP, not 2003)
- Next by thread: Re: ActiveDirectoryMembershipProvider - IsInRole problem
- Index(es):
Relevant Pages
|
|