Active Directory Membership Provider Cannot List Members Section?
Hi Guys,
When going to the members section I am getting:
The directory property cannot be found in the cache. OnSystem.DirectoryServices.dll!System.DirectoryServices.DirectoryEntry.InvokeGet(string propertyName) + 0x201 bytes
Im running umbraco 4.7 and here is my provider setup:
public class CustomMembershipProvider : ActiveDirectoryMembershipProvider
{
public override MembershipUser GetUser(string username, bool userIsOnline)
I want to add Active Directory user authentication for Intranet User in umbraco 4.7.
I am having same problem one of my client want me to setup Active Directory Membership as a login access. So i am checking possibilities of it.
when i am searching for it i just found your posting here. Following are the few links which i have checked so far but not able to getting any perfect solution.
I've successfully implemented the active directory provider.. the only thing it can't do is list members in the members section.. I've decided to live with that..
the main issues I had coming up was querying the active directory often for things like IsInRole and IsProtected etc..
I ended up doing quite alot of caching so I could speed things up after the initial "hit" to AD.
Active Directory Membership Provider Cannot List Members Section?
Hi Guys,
When going to the members section I am getting:
The directory property cannot be found in the cache. On System.DirectoryServices.dll!System.DirectoryServices.DirectoryEntry.InvokeGet(string propertyName) + 0x201 bytes
Im running umbraco 4.7 and here is my provider setup:
public class CustomMembershipProvider : ActiveDirectoryMembershipProvider
{
public override MembershipUser GetUser(string username, bool userIsOnline)
{
return string.IsNullOrEmpty(username) ? null : base.GetUser(username, userIsOnline);
}
public override bool ValidateUser(string username, string password)
{
return base.ValidateUser(username, password);
}
}
<membership defaultProvider="MyADMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="MyADMembershipProvider" type="MyProject.Web.CustomMembershipProvider" connectionStringName="ADConnectionString" connectionUsername="<some username>" connectionPassword="<some password>" connectionProtection="None" attributeMapUsername="SAMAccountName" enableSearchMethods="true" />
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
<add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
</providers>
</membership>
can anyone shed any light on getting this to work?
Cheers,
Tom
Hi Tom,
I want to add Active Directory user authentication for Intranet User in umbraco 4.7.
I am having same problem one of my client want me to setup Active Directory Membership as a login access. So i am checking possibilities of it.
when i am searching for it i just found your posting here. Following are the few links which i have checked so far but not able to getting any perfect solution.
our.umbraco.org/.../23424-Active-Directory-Membership-Provider-Cannot-List-Members-Section
our.umbraco.org/.../active-directory-membership-provider
our.umbraco.org/.../use-active-directory-to-authenticate-site-members-(intranet)
http://umbracoacsextensions.codeplex.com/
if you find ny exact solution then please let me know about it.
Thanks
Rushit
Hi Rushit,
I've successfully implemented the active directory provider.. the only thing it can't do is list members in the members section.. I've decided to live with that..
the main issues I had coming up was querying the active directory often for things like IsInRole and IsProtected etc..
I ended up doing quite alot of caching so I could speed things up after the initial "hit" to AD.
Cheers,
Tom
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.