{"id":3714,"date":"2012-04-28T17:27:07","date_gmt":"2012-04-28T09:27:07","guid":{"rendered":"http:\/\/www.sharepointboost.com\/blog\/?p=3714"},"modified":"2023-07-31T11:39:55","modified_gmt":"2023-07-31T03:39:55","slug":"how-to-configure-form-based-authentication-using-active-directory-in-sharepoint-2010","status":"publish","type":"post","link":"https:\/\/www.boostsolutions.com\/blog\/how-to-configure-form-based-authentication-using-active-directory-in-sharepoint-2010\/","title":{"rendered":"How to Configure Form Based Authentication using Active Directory in SharePoint 2010"},"content":{"rendered":"<p>This article demonstrates how to configure Form &#8211; Based authentication using Active Directory step &#8211; by &#8211; step.<\/p>\n<h2><span style=\"color: #000000;\">I.Create and configure a new Web Application<\/span><\/h2>\n<p>1. Select &#8220;<strong>Claims Based Authentication<\/strong>.&#8221;<\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-1-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-20101.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3716\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-1-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-20101.png\" alt=\"\" width=\"518\" height=\"197\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-1-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-20101.png 518w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-1-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-20101-300x114.png 300w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-1-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-20101.png\" target=\"_blank\" rel=\"noopener noreferrer\"><\/a>2. Select &#8220;<strong>Enable Forms Based Authentication<\/strong>&#8221; and fill in the provider name and role manager name (Give any name you want, these two names will be used in web.config files later).<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-2-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3718\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-2-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" alt=\"\" width=\"545\" height=\"340\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-2-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png 545w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-2-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010-300x187.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><\/p>\n<h2 style=\"text-align: left;\"><span style=\"color: #000000;\">II.Configure web.config for CA and SecurityTokenServiceApplication<\/span><\/h2>\n<p>1. First, open IIS manager and find &#8220;SharePoint Central Administration v4&#8221; application and explore it.<\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-3-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3721\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-3-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" alt=\"\" width=\"407\" height=\"263\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-3-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png 407w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-3-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010-300x193.png 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-3-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><\/a>2. Find web.config file, back it up first.<\/p>\n<p>3. Open web.config again and find the &#8220;<strong>providers<\/strong>&#8221; section under the &#8220;<strong>roleManager<\/strong>&#8221; section and <span style=\"text-decoration: underline;\">add following node<\/span>:<\/p>\n<p>&lt;add name=&#8221;LdapMembershipRole&#8221;<\/p>\n<p>type=&#8221;Microsoft.Office.Server.Security.LdapRoleProvider,<\/p>\n<p>Microsoft.Office.Server,<\/p>\n<p>Version=14.0.0.0, Culture=neutral,<\/p>\n<p>PublicKeyToken=71e9bce111e9429c&#8221;<\/p>\n<p>server=&#8221;your server name or ip&#8221;<\/p>\n<p>port=&#8221;389&#8243;<\/p>\n<p>useSSL=&#8221;false&#8221;<\/p>\n<p>groupContainer=&#8221;OU=ou1,DC=sancheng08,DC=com&#8221;<\/p>\n<p>groupNameAttribute=&#8221;cn&#8221;<\/p>\n<p>groupNameAlternateSearchAttribute=&#8221;samAccountName&#8221;<\/p>\n<p>groupMemberAttribute=&#8221;member&#8221;<\/p>\n<p>userNameAttribute=&#8221;cn&#8221;<\/p>\n<p>dnAttribute=&#8221;distinguishedName&#8221;<\/p>\n<p>groupFilter=&#8221;(ObjectClass=group)&#8221;<\/p>\n<p>userFilter=&#8221;(ObjectClass=person)&#8221;<\/p>\n<p>scope=&#8221;Subtree&#8221; \/&gt;<\/p>\n<p><strong><span style=\"text-decoration: underline;\">NOTE<\/span><\/strong>: It should look like this.<\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-4-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3726\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-4-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" alt=\"\" width=\"683\" height=\"178\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-4-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png 683w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-4-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010-300x78.png 300w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-4-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\"><\/a>a. The attribute &#8220;<strong>name<\/strong>&#8221; should be the &#8220;<strong>ASP.NET Role manager name<\/strong>&#8221; that was specified previously when we created the Web Application.<\/p>\n<p>b.?The attribute &#8220;<strong>groupContainer<\/strong>&#8221; should be the &#8220;<strong>distinguishedName<\/strong>&#8221; of the object that contains the users to be authenticated in Active Directory. &#8220;<strong>distinguishedName<\/strong>&#8220;<strong> <\/strong>can be found in AD.<\/p>\n<p>c. Here &#8220;<strong>OU=ou1, DC=sancheng08, DC=com<\/strong>&#8221; stands for Organizational Unit &#8220;<strong>ou1<\/strong>&#8221; in domain &#8220;<strong>sancheng08.com<\/strong>.&#8221;<\/p>\n<p>4. This time, find the &#8220;<strong>providers<\/strong>&#8221; section under the &#8220;<strong>membership<\/strong>&#8221; section, and <span style=\"text-decoration: underline;\">add following node<\/span>:<\/p>\n<p>&lt;add name=&#8221;LdapMembership&#8221;<\/p>\n<p>type=&#8221;Microsoft.Office.Server.Security.LdapMembershipProvider,<\/p>\n<p>Microsoft.Office.Server.UserProfiles, Version=14.0.0.0,<\/p>\n<p>Culture=neutral, PublicKeyToken=71e9bce111e9429c&#8221;<\/p>\n<p>server=&#8221; your server name or ip&#8221;<\/p>\n<p>port=&#8221;389&#8243;<\/p>\n<p>useSSL=&#8221;false&#8221;<\/p>\n<p>userDNAttribute=&#8221;distinguishedName&#8221;<\/p>\n<p>userNameAttribute=&#8221;sAMAccountName&#8221;<\/p>\n<p>userContainer=&#8221;OU=ou1,DC=sancheng08,DC=com&#8221;<\/p>\n<p>userObjectClass=&#8221;person&#8221;<\/p>\n<p>userFilter=&#8221;(ObjectClass=person)&#8221;<\/p>\n<p>scope=&#8221;Subtree&#8221;<\/p>\n<p>otherRequiredUserAttributes=&#8221;sn,givenname,cn&#8221; \/&gt;<\/p>\n<p>a. The attribute &#8220;<strong>name<\/strong>&#8221; should be the &#8220;<strong>ASP.NET Membership provider name<\/strong>&#8220;<strong> <\/strong>previously specified when creating the Web Application.<\/p>\n<p>b. The attribute &#8220;<strong>userContainer<\/strong>&#8221; is the same as the attribute &#8220;<strong>groupContainer<\/strong>.&#8221;<\/p>\n<p><strong><span style=\"text-decoration: underline;\">NOTE<\/span><\/strong>: It should look like this.<\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-5-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3730\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-5-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" alt=\"\" width=\"679\" height=\"146\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-5-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png 679w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-5-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010-300x64.png 300w\" sizes=\"(max-width: 679px) 100vw, 679px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-5-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><\/a>5. Do the same for the web.config of &#8220;<strong>SecurityTokenServiceApplication<\/strong>.&#8221;<\/p>\n<p>a. Under <strong>Connections -&gt; Sites -&gt; SharePoint Web Services<\/strong>, right click to Explore the <strong>SecurityTokenServiceApplication<\/strong>.<\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-6-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3731\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-6-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" alt=\"\" width=\"467\" height=\"288\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-6-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png 467w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-6-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010-300x185.png 300w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-6-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><\/a>6. For the last step, modify the web.config of the application that we newly created previously.<\/p>\n<p>a. Find &#8220;<strong>providers<\/strong>&#8221; under &#8220;<strong>membership<\/strong>&#8221; section and add provider:<\/p>\n<p>&lt;add name=&#8221;LdapMembership&#8221;<\/p>\n<p>type=&#8221;Microsoft.Office.Server.Security.LdapMembershipProvider,<\/p>\n<p>Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral,<\/p>\n<p>PublicKeyToken=71e9bce111e9429c&#8221;<\/p>\n<p>server=&#8221;your server name or ip&#8221;<\/p>\n<p>port=&#8221;389&#8243;<\/p>\n<p>useSSL=&#8221;false&#8221;<\/p>\n<p>userDNAttribute=&#8221;distinguishedName&#8221;<\/p>\n<p>userNameAttribute=&#8221;sAMAccountName&#8221;<\/p>\n<p>userContainer=&#8221;OU=ou1,DC=sancheng08,DC=com&#8221;<\/p>\n<p>userObjectClass=&#8221;person&#8221;<\/p>\n<p>userFilter=&#8221;(ObjectClass=person)&#8221;<\/p>\n<p>scope=&#8221;Subtree&#8221;<\/p>\n<p>otherRequiredUserAttributes=&#8221;sn,givenname,cn&#8221; \/&gt;<\/p>\n<p><strong><span style=\"text-decoration: underline;\">NOTE<\/span><\/strong>: It should look like this.<\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-7-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3732\" src=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-7-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" alt=\"\" width=\"564\" height=\"292\" srcset=\"https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-7-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png 564w, https:\/\/www.boostsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-7-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010-300x155.png 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.BoostSolutions.com\/blog\/wp-content\/uploads\/2012\/04\/PIC-7-How-to-Configure-Form-Based-Authentication-using-Active-Directory-in-SharePoint-2010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><\/a>7. Reset IIS after completing all the above steps.<\/p>\n<p>8. The user can now be authenticated in Active Directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article demonstrates how to configure Form &#8211; Based authentication using Active Directory step &#8211; by &#8211; step. I.Create and configure a new Web Application 1. Select &#8220;Claims Based Authentication.&#8221; 2. Select &#8220;Enable Forms Based Authentication&#8221; and fill in the provider name and role manager name (Give any name you want, these two names will [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[461,125,480],"tags":[343,344],"_links":{"self":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3714"}],"collection":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3714"}],"version-history":[{"count":27,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3714\/revisions"}],"predecessor-version":[{"id":9238,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3714\/revisions\/9238"}],"wp:attachment":[{"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boostsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}