SharePoint 2016 - Forms Based Authentication - Part Two

In the previous article, SharePoint 2016: Forms Based Authentication – Part 1, of this series on implementing FBA with SharePoint, we saw the execution of steps 1 & 2 for the process.

In this article, we are going to see the execution of steps 3 & 4. For a quick review, I am putting up the process diagram again in here.

Process Diagram

1

Step 3 - Configure IIS

  • Start IIS Manager with Admin rights.

2

  • Select IIS Server Name on the left navigation.
  • Click on the “Connection Strings”.

3

  • Click on "Add".

4

On the “Add Connection String” screen, 
  • Enter the name of Connection String
  • Enter SQL Server Instance Name
  • Enter Database Name
  • Verify the Connection String and make sure it is correctly built up

5

Once done with the process, we can see to the Connection String was created.

6

Select IIS Server Name on the left navigation and click on the Providers”.

7

  • Select Feature “.Net Roles” from the dropdown.
  • Click "Add".

8

On the “Add Provider”,
  • Select Type as “SqlRoleProvider”;
  • Enter an appropriate Name;
  • Enter appropriate Connection String Name;
  • Enter Application Name as “/”;
  • Click "OK".

9

  • Select Feature “.Net Users” from the dropdown.
  • Click "Add".

10

On the “Add Provider” screen
  • Select Type as “SqlMembershipProvider”;
  • Enter appropriate name;
  • Configure behavior of the Membership Provider;
  • Choose Connection String name similar to that we created earlier under Data Section;
  • Scroll down to configure more settings.

11

Enter “/” as Application Name under General section.

12

  • Expand the Web application from the left navigation.
  • Click on the Providers from right hand side.

13

Configure Providers (Roles & Membership Providers) as shown above. Since the steps are exactly the same, I am not repeating it.

I am putting up the screen shots here for your quick reference.

1415161718

Step 4 - Modify Web.Config

In IIS, select the Web application that you want to implement with FBA.

  • Click on Explore”.

19

This will open the Virtual Directory for the Web application.

Edit the Web.Config file for Web application, using Visual Studio.

20

Now, locate PeoplePickerWildcards section, as shown below.

21

Specify the name of membership provider SPMembership that we have configured in the steps above.

22

With this, we are all done for this demo.

In this article, we have covered steps 3 & 4. We will look for step 5 in upcoming article on Configuring FBA for SharePoint. Until then, stay tuned.

X

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now