我有一个包含Claims Authentication和FBA设置的SP站点。Dual auth Win/Forms运行良好。
我在应用程序页面上有一个asp:PasswordRecovery控件。它似乎正确地查找了帐户-如果找不到用户名,则返回“找不到”消息。但是,它无法使用以下可执行选项重置密码:
Exception information:
Exception type: NotImplementedException
Exception message: The method or operation is not implemented.
Thread information:
Thread ID: 10
Thread account name: SERVER01\SPS_Farm
Is impersonating: False
Stack trace: at Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider.GetUser(String name, Boolean userIsOnline)
at System.Web.Security.MembershipProvider.GetUser(String username, Boolean userIsOnline, Boolean throwOnError)
at System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordUserNameView()
at System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 提前谢谢。
更新:
我补充道:
enablePasswordReset="true"应用程序web.config和令牌服务web.config
写了一些代码来做一个手动测试,当我的代码试图“重置”密码时,仍然得到了这个结果:
This provider is not configured to allow password resets. To enable password reset, set enablePasswordReset to "true" in the configuration file.发布于 2011-06-02 23:42:48
这可能没有帮助,因为您似乎正在正确地查找用户...但是如果你不这样做,我知道你可能会遇到未实现的问题:
确保使用适当的成员资格提供程序获取用户的实例。
例如:
MembershipUser myUser = Membership.Providers["aspMembership"].GetUser(userName, false);希望这能有所帮助。
https://stackoverflow.com/questions/5859472
复制相似问题