How to: Configuring LDAP Provider with MOSS 2007
Hi,
Today I wanted to show you the neccessary steps to configure MOSS with the LDAP Provider (we will actually query Active Directory). First you can find at technet2 information about the process and its implications
- Authentication samples (Windows SharePoint Services)->LDAP membership provider https://technet2.microsoft.com/WindowsServer/WSS/en/library/91035419-980e-4230-b3ae-67253b94af4a1033.mspx#section3
- Plan authentication methods (Windows SharePoint Services) https://technet2.microsoft.com/windowsserver/WSS/en/library/b6bc8fec-c11c-4ed7-a78d-3ad61c7ef6c01033.mspx
- Plan authentication settings for Web applications in Office SharePoint Server
- Client integration
- Persistent cookies are not shared between Internet Explorer 7 and Office applications in Windows Vista https://support.microsoft.com/default.aspx/kb/932118
- Configuring Multiple Authentication Providers for SharePoint 2007 https://blogs.msdn.com/sharepoint/archive/2006/08/16/702010.aspx
With all this information it will be easy to set up our job.
Turn on ASP.NET forms authentication
In order to create this task you weill need access to the web.config of the web application under change. You will find it opening Internet Information Services (IIS) Manager, WebSites, and context menu over the web application (open). My example bring me: C:\Inetpub\wwwroot\wss\VirtualDirectories\moss.litwareinc.com80
Then I edit the web.config file and change <authentication mode="Windows" /> with <authentication mode="Forms" /> inside system.web node.
With no other change you will find that if you try to log in your site, it will throw a 404 error and redirects you to the default login page: https://moss.litwareinc.com/login.aspx?ReturnUrl=%2fPages%2fDefault.aspx
Register the membership provider
In the next step we should register the memebership provider for LDAP, and change hte Auth Provider in the Central Admin.
This will involved changing web.config again (remember that changing web.config will reset the AppPool).
The change will affect membership node:
<membership defaultProvider="LdapMembershipProvider">
<providers>
<add
name="LdapMembership"
type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
server="MOSS.LITWAREINC.COM"
port="389"
useSSL="false"
userDNAttribute="distinguishedName"
userNameAttribute="sAMAccountName"
userContainer="CN=Users,DC=litwareinc,DC=com"
userObjectClass="person"
userFilter="(|(ObjectCategory=group)(ObjectClass=person))"
scope="Subtree"
otherRequiredUserAttributes="sn,givenname,cn"
/>
</providers>
</membership>
In order to fill in the userContainer attribute (we changed serverto match our environment [SingleServer]), I will use ADExplorer https://www.microsoft.com/technet/sysinternals/utilities/adexplorer.mspx.
Then You will need too browse to Authentication Providers in the Central Administration, Edit Authentication of your Web Application, and include the name of the provider. In the sample: LdapMembershipProvider
Then if you go back to your site, it will show you the login page.
Register the role manager (optional).
Finally you can add information for the role manager:
<roleManager defaultProvider="LdapRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".PeopleDCRole">
<providers>
<add
name="LdapRoleProvider"
type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
server="DC"
port="389"
useSSL="false"
groupContainer="DC=litwareinc,DC=com"
groupNameAttribute="cn"
groupMemberAttribute="member"
userNameAttribute="sAMAccountName"
dnAttribute="distinguishedName"
groupFilter="(ObjectClass=group)"
scope="Subtree"
/>
</providers>
</roleManager>
And update the authentication provider central admin.
More references to solve some issues
- https://www.sharepointblogs.com/rhulsman/archive/2006/12/12/using-ldapmembershipprovider-in-sharepoint-and-get-it-to-work.aspx
- https://www.setfocus.com/technicalarticles/nickkellett/MOSS2007-and-Novell-LDAP-Authentication_pg1.aspx
- <https://www.helloitsliam.com/archive/2006/08/15/moss2007-–-ldap-authentication.aspx>
Namaste ;)
Comments
- Anonymous
July 23, 2007
PingBack from http://mhinze.com/14-links-today-2007-07-23/ - Anonymous
August 27, 2007
Siguiendo con la tradicional recopilación periódica de recursos sobre WSS 3.0 & MOSS, en esta ocasión - Anonymous
September 16, 2007
Retomando el clásico recopilatorio de recursos y enlaces que sobre WSS 3.0 & MOSS venimos realizando - Anonymous
September 10, 2008
In my class I was in, the discussion came up about how could SharePoint work with ADAM as a authentication - Anonymous
January 05, 2011
Hello,where is the member ship node? In which Web.config? In the Central Admin. I can't found this node.thx