Sharepoint 2010 Sharepoint 2010 ldap异常FaultException`1

Sharepoint 2010 Sharepoint 2010 ldap异常FaultException`1,sharepoint-2010,ldap,Sharepoint 2010,Ldap,我已按照以下链接上的说明进行操作: 用户登录时:如果用户名和密码错误,将显示一条消息,通知用户重试 但当用户名和密码正确时,会引发异常: [FaultException`1: Unexpected exception occurred, please contact administrator to resolve this issue.] Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(

我已按照以下链接上的说明进行操作:

用户登录时:如果用户名和密码错误,将显示一条消息,通知用户重试

但当用户名和密码正确时,会引发异常:

    [FaultException`1: Unexpected exception occurred, please contact administrator to resolve this issue.]
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response) +1161205
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) +73
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) +36
   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo) +26618417
   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(Uri context, String membershipProviderName, String roleProviderName, String username, String password, Boolean isPersistent) +26623308
   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.GetSecurityToken(Login formsSignInControl) +210
   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.AuthenticateEventHandler(Object sender, AuthenticateEventArgs formAuthenticateEvent) +123
   System.Web.UI.WebControls.Login.AttemptLogin() +152
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

最后我找到了解决方案,这是因为web.config中的角色提供程序出错,CN值错误

这个问题更适合