问题描述
我想用我的LDAP服务器设置一个基于表单的Web应用程序.我已经创建了必需的Web应用程序,并且对Central Admin,Web应用程序和安全服务应用程序的Web.config文件进行了必需的更改.我在1x1x1工作 拓扑.
I want to set up a form base web application with my LDAP server. I have created a required web application and required changes has been made into Web.config file of Central Admin, Web Application and Security service application. I am working in 1x1x1 topology.
但是,我无法配置与LDAP的连接,并且用户无法进行身份验证.以下是我的ULS日志中的错误.
However I am not able to configure the connection with LDAP and users are not able to authenticate. below is the error from my ULS log.
从成员资格提供者MyMemberProvider中搜索xxxxx时出错:Microsoft.Office.Server.Security.LdapProviderException:发生意外的异常,请与管理员联系以解决此问题.在Microsoft.Office.Server.Security.LdapMembershipProvider.GetUser(String valueToMatch,String propertyToMatch) 在Microsoft.Office.Server.Security.LdapMembershipProvider.GetUser(字符串名称,布尔值userIsOnline)上.在Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.ResolvePrincipal(String 输入,布尔输入IsEmailOnly,SPPrincipalType范围,SPPrincipalSource源,SPUserCollection usersContainer)在Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.SearchPrincipals(字符串输入,SPPrincipalType 范围,SPPrincipalSource ... 39e3149e-34f2-505a-264f-02552b7fb1ed
Error searching for xxxxx from membership provider MyMemberProvider: Microsoft.Office.Server.Security.LdapProviderException: Unexpected exception occurred, please contact administrator to resolve this issue. at Microsoft.Office.Server.Security.LdapMembershipProvider.GetUser(String valueToMatch, String propertyToMatch) at Microsoft.Office.Server.Security.LdapMembershipProvider.GetUser(String name, Boolean userIsOnline) at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.ResolvePrincipal(String input, Boolean inputIsEmailOnly, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer) at Microsoft.SharePoint.Utilities.SPMembershipProviderPrincipalResolver.SearchPrincipals(String input, SPPrincipalType scopes, SPPrincipalSource ... 39e3149e-34f2-505a-264f-02552b7fb1ed
09/01/2017 02:00:30.78 * w3wp.exe(0x0930) 0x20C4 SharePoint Foundation 要求身份验证 f8qh 高 ...来源,SPUserCollection usersContainer,Int32 maxCount,Boolean& bReachMaxCount)在Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider.Search(SPPrincipalResolver解析器,SPPrincipalSource pricipalSource,SPPrincipalType pricipalType,字符串searchPattern,Int32 maxCount,列表已解决1).在Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider.FillSearch(Uri上下文,布尔型allZones,String []实体类型, 字符串searchPattern,Int32 maxCount,SPProviderHierarchyTree searchTree) 39e3149e-34f2-505a-264f-02552b7fb1ed
09/01/2017 02:00:30.78* w3wp.exe (0x0930) 0x20C4 SharePoint Foundation Claims Authentication f8qh High ...sources, SPUserCollection usersContainer, Int32 maxCount, Boolean& bReachMaxCount) at Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider.Search(SPPrincipalResolver resolver, SPPrincipalSource pricipalSource, SPPrincipalType pricipalType, String searchPattern, Int32 maxCount, List`1 resolved) at Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider.FillSearch(Uri context, Boolean allZones, String[] entityTypes, String searchPattern, Int32 maxCount, SPProviderHierarchyTree searchTree) 39e3149e-34f2-505a-264f-02552b7fb1ed
您能帮我们找出我想念的东西吗?
Can you please help us to find out what I am missing.
这是我的配置详细信息,
Here are my configuration details,
<添加名称="MyMemberProvider"
<add name="MyMemberProvider"
类型="Microsoft.Office.Server.Security.LdapMembershipProvider,Microsoft.Office.Server,版本= 15.0.0.0,文化=中性,PublicKeyToken = 71e9bce111e9429c"
type="Microsoft.Office.Server.Security.LdapMembershipProvider, Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
服务器="xxxxxx.xxx.xxxx.com"
server="xxxxx.xxx.xxxx.com"
port ="1637"
port="1637"
useSSL ="false"
useSSL="false"
useDNAttribute ="false"
useDNAttribute="false"
userNameAttribute ="cn"
userNameAttribute="cn"
userContainer =" ou = People,o = xxxCore,dc = xxx,dc = com"
userContainer="ou=People,o=xxxCore,dc=xxx,dc=com"
userObjectClass =人"
userObjectClass="person"
userFilter ="((ObjectClass = person)"
userFilter="(ObjectClass=person)"
scope =" Subtree"
scope="Subtree"
otherRequiredUserAttributes ="uid,cn"; />
otherRequiredUserAttributes="uid,cn" />
<添加名称="MyRoleProvider"
<add name="MyRoleProvider"
类型="Microsoft.Office.Server.Security.LdapRoleProvider,Microsoft.Office.Server,版本= 15.0.0.0,文化=中性,PublicKeyToken = 71e9bce111e9429c"
type="Microsoft.Office.Server.Security.LdapRoleProvider, Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
服务器="xxxxxx.xxx.xxxx.com"
server="xxxxx.xxx.xxxx.com"
port ="1637"
port="1637"
useSSL ="false"
useSSL="false"
groupContainer ="dc = xxx,dc = com"
groupContainer="dc=xxx,dc=com"
userNameAttribute ="cn"
userNameAttribute="cn"
useUserDNAttribute ="false"
useUserDNAttribute="false"
userFilter ="((objectClass = person)"
userFilter="(objectClass=person)"
groupNameAttribute ="cn"
groupNameAttribute="cn"
dnAttribute ="
dnAttribute=""
scope =子树" />
scope="Subtree" />
这是Web应用程序web.config中的PeoplePicker,
Here is my PeoplePicker from Web Application web.config,
< PeoplePickerWildcards>
<PeoplePickerWildcards>
<清除/>
<clear />
<添加密钥="AspNetSqlMembershipProvider";值=%". />
<add key="AspNetSqlMembershipProvider" value="%" />
< add key =" MyMemberProvider"值="*" />
<add key="MyMemberProvider" value="*" />
< add key ="MyRoleProvider";值="*" />
<add key="MyRoleProvider" value="*" />
</PeoplePickerWildcards>
</PeoplePickerWildcards>
对此表示任何帮助.
谢谢
推荐答案
请按照下面的文章检查您是否在SharePoint 2013中使用LDAP成员资格提供程序正确配置了FBA:
Please follow the article below to check if you configure FBA with a LDAP membership provider in SharePoint 2013 correctly:
然后转到管理中心->管理Web应用程序->选择Web应用程序,然后单击用户策略->添加用户->添加相关用户并给予适当的权限.
Then go to Central Administration->Manage Web application->select Web Application and click User policy->Add users->add the relevant user and give the proper permission.
最诚挚的问候,
Grace Wang
Grace Wang
这篇关于LDAP的基于表单的身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!