您的位置:首页 > 其它

Configuring FBA in SharePoint 2010

2011-08-27 11:11 281 查看
Here’s a guide of configuring FBA inSharePoint 2010.

Please follow these steps:

Provision a Claims based web application

1. Go to 'Central Admin' --> 'Manage Web Application' --> 'New'

2. Select 'Claims Based Authentication'



3. In Claims Authentication Types, pleasecheck 'Enable windows Authentication' and 'Enable Forms Based Authentication(FBA)'. Set membership provider name to 'FBAUser' and role provider name to 'FBARole'.



Set FBA Membership Provider

There are several kinds of FBA providers available in SharePoint 2010

SQL Membership Provider

1. Go to 'Start' --> Run, type 'cmd' then click ok.



2. Type 'cd %windir%\Microsoft.Net\Framework\v2.0.50727'



3. Run 'aspnet_regsql' to start 'ASP.NET SQL Server Setup Wizard' then click 'Next'



4. Select 'Configure SQL Server for application services' click next. Then fill the blanks on the board.



5. Click 'Next' till finish.

Customed Provider (For the programmers)

Programmers can build a customed provider project using c#. Create a class library project, add a reference to 'System.Web.dll'. Then inherit the MembershipProvider and RoleProvider class and implement the abstract functions. Here's a sample.

Click here to download the source code.

Active Directory Membership Provider

Build a LDAP connection string to provide the user source.

Edit the web.config files

After setting the membership provider, we need to edit the web.config files of the 'Central Admin' web application, the FBA web application and also the security token service application. Here are 3 sample web.config files. Please follow the sample and change each web.config file.

For Central Admin: CentralAdmin.Web.Config

For FBA Web Application: FBAWebApp.Web.Config

For SecurityToken Service Application: SecurityToken.Web.Config

Create FBA Users

1. Go to 'Start' --> 'Run' --> Type 'InetMgr.exe' click ok to start IIS Manager



2. Select the Central Administration Application on the IIS manager tree then double click the '.Net Users' button.



3. Click 'Add...' to create FBA users.



Create FBA Site Collection

Ok, we have the FBA web application and also the FBA users. Now we can create a FBA site collection just the same as create a normal site collection.

1. Go to Central Admin --> Application management --> Create a Site collection



2. Click the find user button and try to find the FBA users. Then create the site collection.





3. After creating the site collection. We can access the site now.



Finished!!!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: