Configuring Form Based Authentication in Sharepoint 2013
When we first
create a site in sharepoint 2010, by
default it uses claims based authentication unlike share point 2010 which uses
by default windows authentication.
In share point 2013 claim authentication is default
authentication available in central administration. And our newly created site
by default uses windows authentication .
So like share point 2010 it is not need to configure central
administration for FBA . only need to configure Security service Application
and our content site.
Follow following steps to configure FBA.
1.
Create member ship database .
Browse to
c:\windows\microsoft.net\framework\<latestframework> on command prompt
and type aspnet_regsql.exe . follow the wizard name the database say Membershipdb.
2.
Set up Membership provider and role manager in
content site.
Go to CA >> Application Management
>>select Your Application . from ribbon click on authentication providers
and set ASP.net membership provider and role Manager. Say. FBAMemberShipProvider and FBAMemberShipProvider
3.
Update these in STS web.config. go to IIS
Manager explore Security Token Service Application. Open web.config backup it
and begin to make changes.
STS File Changes avobe </configuration> Write bellow
lines
<system.web>
<membership>
<providers>
<add
connectionStringName="SqlConnectionString"
applicationName="/" name="FBAMemberShipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</providers>
</membership>
<roleManager>
<providers>
<add
connectionStringName="SqlConnectionString"
applicationName="/" name="FBARoleManager"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
</system.web>
<connectionStrings>
<add
name="SqlConnectionString"
connectionString="Data Source=.;Initial Catalog=Membershipdb;Integrated
Security=SSPI" />
</connectionStrings>
4.Content site web.config changes
Open web.config search for <membership> in
<providers> one will be added . add one more as bellow.
<add connectionStringName="SqlConnectionString"
applicationName="/" name="FBAMemberShipProvider" type="System.Web.Security.SqlMembershipProvider,
System.Web,
 Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
Similarly in role Manager Section Add
role Manager section add bellow code
<add connectionStringName="SqlConnectionString"
applicationName="/" name="FBARoleManager"
type="System.Web.Security.SqlRoleProvider, System.Web,

Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
add connection string connection string avobe the
</configuration>
<connectionStrings>
<add
name="SqlConnectionString"
connectionString="Data Source=.;Initial Catalog=Membershipdb;Integrated
Security=SSPI" />
</connectionStrings>
Save all of Avobe and Reset the IIS . and you are done.
Here is a post about setting up FBA. It includes screen shots to help you along.
ReplyDeletehttp://wp.me/psiID-6Z
Chris