MOSS 2007. Аутентификация через SunOne LDAP
Как настроить в SharePoint 2007 аутентификацию в SunOne LDAP?
Во-первых, необходимо настроить параметры соединения с SunOne LDAP в файле web.config вашего Web application
<membership defaultProvider="LdapDemoMembership">
<providers>
<add name="LdapDemoMembership" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="[Server_Name]" port="[Port_Number]" useSSL="false" userDNAttribute="entryDN" userNameAttribute="uid" userContainer="ou=personnes,dc=total" userObjectClass="inetOrgPerson" userFilter="(ObjectClass=*)" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" />
</providers>
</membership>
<roleManager defaultProvider="LdapDemoRole" enabled="true" cacheRolesInCookie="true" cookieName=".PeopleDCRole">
<providers>
<add name="LdapDemoRole" type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="[Server_Name]" port="[Number]" useSSL="false" groupContainer="dc=total" groupNameAttribute="cn" groupMemberAttribute="uniqueMember" userNameAttribute="uid" dnAttribute="entryDN" groupFilter="(ObjectClass=*)" scope="Subtree" />
</providers>
</roleManager>
Во-вторых, нужно настроить web.config консоли центра администрирования
<membership defaultProvider="LdapDemoMembership">
<providers>
<add name="LdapDemoMembership" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="[Server_Name]" port="[Port_Number]" useSSL="false" userDNAttribute="entryDN" userNameAttribute="uid" userContainer="ou=personnes,dc=total" userObjectClass="inetOrgPerson" userFilter="(ObjectClass=*)" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" />
</providers>
</membership>