{"id":177,"date":"2013-01-02T14:59:41","date_gmt":"2013-01-02T19:59:41","guid":{"rendered":"http:\/\/blogs.visigo.com\/chriscoulson\/?p=177"},"modified":"2013-01-22T10:42:56","modified_gmt":"2013-01-22T15:42:56","slug":"configuring-forms-based-authentication-in-sharepoint-2013-part-4-configuring-sharepoint","status":"publish","type":"post","link":"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-4-configuring-sharepoint\/","title":{"rendered":"Configuring Forms Based Authentication in SharePoint 2013 &#8211; Part 4 &#8211; Configuring SharePoint"},"content":{"rendered":"<p>Configuring forms based authentication (FBA) in SharePoint 2013 is very similar to SharePoint 2010, but there are some differences due to SharePoint 2013 using .Net 4.0. The web.config entries entries are slightly different. As well, IIS doesn&#8217;t support editing .Net 4.0 membership provider configuration through the IIS interface, so all of the configuration has to be done directly in the .config files. I&#8217;ll go through all of the steps required to setup FBA for SharePoint 2013, from start to finish. \u00a0I&#8217;ve broken down the steps into 4 sections:<\/p>\n<p><a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 1 \u2013 Creating the Membership Database\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-1-creating-the-membership-database\/\">Part 1 &#8211; Creating the Membership Database<\/a><\/p>\n<p><a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 2 \u2013 Adding users to the Membership Database\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-2-adding-users-to-the-membership-database\/\">Part 2 &#8211; Adding Users to the Membership Database<\/a><\/p>\n<p><a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 3 \u2013 Editing the Web.Config Files\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-3-editing-the-web-config-files\/\">Part 3 &#8211; Editing the Web.Config Files<\/a><\/p>\n<p><a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 4 \u2013 Configuring SharePoint\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-4-configuring-sharepoint\/\">Part 4 &#8211; \u00a0Configuring SharePoint<\/a><\/p>\n<h2>Part 4 &#8211; \u00a0Configuring SharePoint<\/h2>\n<p>Now that the membership and role provider have been configured, we can configure SharePoint to use them. \u00a0For this example i&#8217;m going to create a new SharePoint web application. \u00a0The same settings can be applied to an existing web application through the Authentication Providers dialog.<\/p>\n<ul>\n<li>Open SharePoint Central Administration -&gt; Application Management -&gt; Manage Web Applications.<\/li>\n<li>Click &#8220;New&#8221; to create a new Web Application.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-164\" alt=\"sharepoint_2013_fba_web_application_1\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_1-500x340.png\" width=\"500\" height=\"340\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_1-500x340.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_1-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_1.png 1066w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>Name the web application and adjust any other options to your preferences.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-165\" alt=\"sharepoint_2013_fba_web_application_2\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_2-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_2-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_2-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_2.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>Check &#8220;Enable Forms Based Authentication (FBA)&#8221;. Enter the ASP.Net Membership Provider Name and ASP.NET Role Provider Name that you configured in the web.config. For this example we used &#8220;FBAMembershipProvider&#8221; and &#8220;FBARoleProvider&#8221; (Without the quotation marks).Also, for this example we left &#8220;Enable Windows Authentication&#8221; checked. This allows us to login either via Windows Authentication or Forms Based Authentication (SharePoint will prompt you when you login for which method you&#8217;d like to use).Click OK.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-166\" alt=\"sharepoint_2013_fba_web_application_3\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_3-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_3-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_3-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_3.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>An Application Created dialog will appear. Click the &#8220;Create Site Collection&#8221; link to create the first site collection for this web application.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-167\" alt=\"sharepoint_2013_fba_web_application_4\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_4-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_4-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_4-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_4.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>From the Create Site Collection dialog, give the site collection a name and URL and select a template.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-178\" alt=\"sharepoint_2013_fba_web_application_5\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_5-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_5-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_5-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_5.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>For the Primary Site Collection administrator, i&#8217;ve left it as my Windows administrator account, so that I can login without FBA. For the Secondary Site Collection Administrator i&#8217;ve set it to &#8216;fbaadmin&#8217; &#8211; the FBA account we setup in <a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 2 \u2013 Adding users to the Membership Database\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-2-adding-users-to-the-membership-database\/\">Part 2<\/a>\u00a0(If you skipped Part 2 because you&#8217;re using the <a title=\"SharePoint 2013 FBA Pack\" href=\"http:\/\/sharepoint2013fba.codeplex.com\/\">SharePoint 2013 FBA Pack<\/a>, then you can just leave this blank for now and use your domain account to login to SharePoint and create your FBA users). You can set these to whatever is appropriate for your setup. Click OK.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-168\" alt=\"sharepoint_2013_fba_web_application_6\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_6-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_6-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_6-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_6.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>You&#8217;ll get the &#8220;Top-Level Site Successfully Created&#8221; dialog. You can click on the URL to visit the new site collection you just created.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-169\" alt=\"sharepoint_2013_fba_web_application_7\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_7-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_7-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_7-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_web_application_7.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>When authenticating to the site collection, if you enabled both Windows Authentication and Forms Based Authentication, you&#8217;ll be prompted for which method you&#8217;d like to use to authenticate. I&#8217;m going to choose to authenticate with Forms Authentication.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-161\" alt=\"sharepoint_2013_fba_login_1\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_1-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_1-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_1-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_1.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>You&#8217;ll be prompted for a username and password. Enter the username and password that we created in <a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 2 \u2013 Adding users to the Membership Database\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-2-adding-users-to-the-membership-database\/\">Part 2<\/a>, and also set as the Secondary Site Collection Administrator.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-162\" alt=\"sharepoint_2013_fba_login_2\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_2-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_2-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_2-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_2.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<li>You&#8217;re now logged into the site as a site collection administrator.<a href=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-163\" alt=\"sharepoint_2013_fba_login_3\" src=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_3-500x341.png\" width=\"500\" height=\"341\" srcset=\"https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_3-500x341.png 500w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_3-300x204.png 300w, https:\/\/blogs.visigo.com\/chriscoulson\/wp-content\/uploads\/2012\/12\/sharepoint_2013_fba_login_3.png 1065w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/li>\n<\/ul>\n<p>That&#8217;s it! Now you can authenticate to the site with Forms Based Authentication. You can also create and edit users using the methods discussed in <a title=\"Configuring Forms Based Authentication in SharePoint 2013 \u2013 Part 2 \u2013 Adding users to the Membership Database\" href=\"https:\/\/blogs.visigo.com\/chriscoulson\/configuring-forms-based-authentication-in-sharepoint-2013-part-2-adding-users-to-the-membership-database\/\">Part 2<\/a>. Be sure to check out the\u00a0<a title=\"SharePoint 2013 FBA Pack\" href=\"http:\/\/sharepoint2013fba.codeplex.com\/\">SharePoint 2013 FBA Pack<\/a>, which will allow you to manage your forms based users directly within SharePoint, as well as provide methods for users to register, change their password and recover their password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configuring forms based authentication (FBA) in SharePoint 2013 is very similar to SharePoint 2010, but there are some differences due to SharePoint 2013 using .Net 4.0. The web.config entries entries are slightly different. As well, IIS doesn&#8217;t support editing .Net 4.0 membership provider configuration through the IIS interface, so all of the configuration has to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,19,5],"tags":[321,94,296,130,20,316,159,294,21,297,291,292,295,293],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-configuration","category-forms-based-authentication","category-sharepoint","tag-net","tag-asp-net","tag-aspnetdb","tag-central-admin","tag-fba","tag-forms-based-authentication","tag-iis","tag-machine-config","tag-membership","tag-membership-provider","tag-sharepoint-2013","tag-sharepoint-2013-fba-pack","tag-sqlmembershipprovider","tag-web-config"],"_links":{"self":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":2,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":206,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts\/177\/revisions\/206"}],"wp:attachment":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}