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!!!
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!!!
相关文章推荐
- Configuring Alternate Access Mapping in SharePoint 2010 using Windows PowerShell
- Forms Based Authentication FBA by AD in SharePoint 2010
- Configuring Anonymous Access in SharePoint 2010
- Configuring the User Profile Service in SharePoint 2010
- Configuring My Site in SharePoint 2010
- Configuring Auditing in SharePoint 2010
- Configuring incoming email in SharePoint 2010 with Exchange – Step by Step Guide
- Configuring PerformancePoint services in SharePoint 2010
- Configuring Alternate Access Mapping in SharePoint 2010
- How To Create SharePoint 2010 Site Collection In Its Own DB
- (转)Support answers on sandboxed solutions in SharePoint 2010
- How to Create Mysite in SharePoint 2010
- How to:Create, Configure, Consume SharePoint 2010 Secure Store in Business Connectivity Services
- How to: Hide the Ribbon in SharePoint 2010
- Backup and Restore in SharePoint 2010
- Implement Workflow in SharePoint Designer 2010
- ASP.NET Chart Controls in SharePoint 2010
- How to remove the ribbon tabs in list forms in SharePoint 2010
- Force stop and then start a full crawl on all content sources in a SharePoint 2010 farm using PowerShell(转)
- How to Setup Load Balance in SharePoint 2010 Farm