December 13, 2006

Enabling forms authentication in Sharepoint 2007 or WSS 3.0



9.4.1 Create forms authentication database
You can do this by running aspnet_regsql and choosing the database to configure for aspnet forms authentication
9.4.2 Create users
You can accomplish this by creating a simple web site in VS 2005 and configuring it for forms authentication.
Run asp.net configuration tool

9.4.3 Change application name if necessary
You can do this using sql server management studio express.
Navigate to your portal authentication database and choose table Applications and change the column applicationName.
9.4.4 In sharepoint site edit machine.config file
Be sure that the provider sections for authentication and role management uses the same application name as forms authentication database application name
Edit LocalSqlServer connection string for custom authentication database connection
9.4.5 In sharepoint administration change authentication provider
Navigate Central Administration > Application Management > Authentication Providers
choose forms authentication
Edit Membership Provider Name
Fill with AspNetSqlMembershipProvider
This entry is defined in machine.config file located in c:\windows\Microsoft.Net\(2.0 framework directory)
This is the place where machine wide configuration information is kept.
Edit Role Manager Name
Fill with AspNetSqlRoleProvider
This entry is defined in machine.config file located in c:\windows\Microsoft.Net\(2.0 framework directory)
This is the place where machine wide configuration information is kept.
9.4.6 Change site administrators
Navigate to Central Administration > Application Management > Site Collection Owners
Choose the users you have created
9.4.7 Execute a iisreset command on sharepoint server machine
9.4.8 Restart your browser

No comments:

Post a Comment