开发者

Problem inheriting from ActiveDirectoryMembershipProvider

开发者 https://www.devze.com 2023-01-31 20:10 出处:网络
I have a direct inheritance from ValidateUser ActiveDirectoryMembershipProvider called CustomActiveDirectoryMembershipProvider.

I have a direct inheritance from ValidateUser ActiveDirectoryMembershipProvider called CustomActiveDirectoryMembershipProvider.

The only method that is overridden is ValidateUser.

When the custom provider is used everything work except that we can't find any users. GetAllUsers wor开发者_运维知识库ks but not FindUsersByName or EMail.

When we switch over to the original provider, with the same settings, everything starts to work.

Anyone got this problem and solved it?


Have you tried overriding the "FindUsersByName or EMail" methods and calling the base implementation explicitly?

I seem to recall guessing the method calls are made through introspection and assume an inheriting implementation

0

精彩评论

暂无评论...
验证码 换一张
取 消