7.11.12

FBA sharepoint

http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/
Utenza Database: SPS.Farm.Admin
Nome database: SharePoint_FBA
Membership Provider: FBAMembershipProvider
Role Manager: FBARoleProvider
1. Accededuto al db loggandoci con SPS.Farm.Admin
2. Lanciato c:\windows\microsoft.net\framework\v2.0.50727\aspnet_reqsql.exe e viene aperta la GUI di creazione
3. Creato database con windows auth

1.1 Creazione web application

1. Acceduto alla central admin
2. New web application sulla porta 80
3. Scelta la Claim Based e settati I flag ntlm e fba
4. Settati fba
5. Settato utente app pool
6. Accettati i default tranne service application connections e excel service (scelte le ultime 4)
7. Nome database 0

1.2 Configurazione FBA

1. Seguiti i passi del doc in allegato ed in particolare:
2. Lanciare IIS Manager
3. Selezionare la webapp (e poi rifare l’operazione anche nel central admin site e sottosito securityTockenService (secure store web service)come indicato nel punto 2 del documento allegato)
image
4. Connection string
a. Add
b. Nome: FbaConnectionString
c. Configurati i parametri (use windows security)
5. .net users
6. Selezionati e configurati i .net roles e membership
a. In particolare settato a false require security answer

imageimage
7. Cliccare su .net roles
Settare FBARoleProvider come default
image
8. Creati i ruoli StandardFBAUsers e AdminFBAUsers (no in central admin e in tocken security)
image
9. Creato l’utente SPS.FBA.Admin
image
10. Set Authentication
SharePoint should have done this when you created the web application, but let’s confirm.  From the web application home page in IIS Manager, select Authentication under the IIS section. Confirm that the web application has both Integrated and Forms enabled.
11. ATTENZIONE ALLA NOTA SEGUENTE!!!
Ricordarsi di risettare come default c
12. In order for you to use IIS Manager to manage your SQL users, you need to set the default provider to our Forms provider, i.e. FBAMembershipProvider.  In order for it to work we need to set it to the SharePoint claims provider.  Go back to .NET Users and reset the default provider to “i” which is for the Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider
You should also check the default Role Provider for the web application and ensure that is set to “c”.  If this is set to the SQL provider that you created, you will get an unexpected error after you logon.

No comments:

Post a Comment