Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SharePoint Form Authentication using LDAP
WhatsApp
Destin Joy
14y
23.5k
0
0
100
Article
First we need to configure the Authentication Provider to use Forms Based Authentication. This is done via SharePoint Central Administration.
Browse to
SharePoint Central Administration
Select the
Application Management
tab
Under the Application Security section select
Authentication Providers
Select the appropriate
Web Application
which you want to allow Forms based Authentication.
After selecting web application from the drop down .Click the appropriate, only
Default
as shown above.
Scroll down to the Authentication Type section and change the
Authentication Type
to Forms
Scroll down to
Membership Provide Name
and enter the name of your Membership provider, this must match the name in your web.config (see below).
You can leave Role Manager as blank
Select Client Integration as NO
Update SharePoint Central Admin web.config
Please note that updating the web.config incorrectly can damage your SharePoint installation. Extreme care should be taken, please do not edit the web.config if you are not familiar with web.config or XML structures.
Make a backup of the web.config file (always a best practice).
Locate your web.config file for the SharePoint Central Administration website. Normally located in
C:\Inetpub\wwwroot\wss\VirtualDirectories
Take special care to select the right Virtual Directory, mine is named
SharePointCA80
yours will be different
Locate the
web.config
file and open it with notepad
Scroll down to the configuration node, <configuration> find <connectionStrings>
<connectionStrings>
<add name=" LDAPMConnectionString" connectionString="<a
href="ldap://Your domain name.local/CN=Users,DC=???,DC=local">
LDAP://Your Domain name.local/CN=Users,DC=Your Domain Name,DC=local</a>" />
</connectionStrings>
Scroll down to the system web <system.web> node and the following membership
<membership defaultProvider=" LDAPMembershipProvider ">
<providers>
<add name=" LDAPMembershipProvider "
type="System.Web.Security.ActiveDirectoryMembershipProvider,System.Web,
Version=2.0.0.0,
Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName=" LDAPMConnectionString "connectionUsername="User ID"
connectionPassword="****"enableSearchMethods="true"
attributeMapUsername="Admin "/>
</providers>
</membership>
Save and close the web.config for SharePoint Central Administration
Update the web.config of
SharePoint Web application
Repeat steps 1 to 8 for the web.config of the SharePoint web application you configured the Authentication Provider for Forms Based Authentication above
Check the authentication in this web.config is set to the following.
<authentication mode="Forms">
<forms loginUrl="/_layouts/login.aspx"></forms>
</authentication>
Form Authentication
form authentication in sharepoint
LDAP
SharePoint
SharePoint Form Authentication
SharePoint Form Authentication using LDAP
Up Next
Ebook Download
View all
Configure MinRole Search and Cloud Hybrid Features in SharePoint Server 2016 and Office 365
Read by 1.6k people
Download Now!
Learn
View all
Membership not found