Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

If I use :

MembershipProvider membership = Membership.Providers["AspNetSqlMembershipProvider"];
MembershipUserCollection msc = membership.GetAllUsers(0, 200000, out totalnumber);

I got all userS from asnpnet db. That is ok.

If I use:

MembershipProvider membership = Membership.Providers["i"];
MembershipUserCollection msc = membership.GetAllUsers(0, 200000, out totalnumber);

Again, I get only users from aspnet db.

Claims provider is my default provider.

Question: Why can't I get other users ( from AD) when I call GetAllUsers on claims ("i") provider?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I think you'll need to override a method from your claimsprovider that gets all the users from AD AND from the SQL database

Maybe you could use an active directory membershipprovider?
http://blog.bergdaniel.se/post/Using-the-active-directory-membership-provider-with-EPiServer.aspx

share|improve this answer
2  
There is no need for overriding. It was just necessary to add ldap provider to web config and in code write MembershipProvider membership = Membership.Providers["LdapMembershipProvider"]; Even "FindUsersByEmail" work correctly! –  trip Jun 21 '11 at 12:42
    
Ok, glad you found it :) –  Ruben Herman Jun 21 '11 at 13:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.