Hi All,
I am having a problem to get FBA on my sharepoint website, can some please help out
Here are the steps, i have taken, would be happy to provide the code in ZIP files
ASP.NET
1. Created the Custom membership provider (DLL file) in asp.net (found sample on website)
2. Tested in asp.net web admin configuration tool, worked perfect
3. Connected to database, added/modified/deleted user everything worked fine in asp.net
4. Created a test website, added CreateUser.aspx,Login.aspx, tested it, everything worked fine in asp.net
5. Created strong name key for the custom membership dll
SHAREPOINT
What i want to do is to create a web application using forms authentication (my provider)
I am the administrator for the server, has full control on everything on this server
My central admin site is on port 10000.
Created New Website at Port 5000 --> Extended the site on port 5000 (Windows Authentication)
Used an existing sharepoint Pool, added myself as administrator as well as site collection administrators
Added beleow changes to web.config file of the Central admin and the site
In the central admin site the changed the defaultProvider to AspNetWindowsTokenRoleProvider
In the website, it styed the same as mentioned below HDIAspNetSqlRoleProvider
Above the system.wb tag
<connectionStrings>
<add name="HDIConnectionString" providerName="System.Data.SqlClient" connectionString="Server=.;Database=HDIMembershipProvider;Trusted_Connection=True;"/>
</connectionStrings>
Inside system.web tag
<!--Custom Role Provider Configuration-->
<roleManager enabled="true" defaultProvider="HDIAspNetSqlRoleProvider">
<providers>
<add name="HDIAspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="HDIConnectionString" applicationName="/"
/>
</providers>
</roleManager
<!--Custom Role Provider Configuration-->
<!--Custom Membership Provider Configuration-->
<membership defaultProvider="HDIMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add
name="HDIMembershipProvider"
type="HDI.AspNet.Membership.HDIMembershipProvider"
connectionStringName="HDIConnectionString"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
writeExceptionsToEventLog="false" />
</providers>
</membership>
<!--Custom Membership Provider Configuration-->
Next steps
1. Added the Custom Membership dll to GAC
2. Added the Custom Provider dll to the _appbin folder of central admin site
3. Added the Custom membership dll to the web.config (Compilation tag) of both central admin as well as the site.
4. For testing purposes Set the security to minimal
5. Application Management --> select the new site on port 5000 --> changed the Authentication to Forms
6. At this Point, if i can search the users using the custom provider, it resolves the id.
7. Use the URL for the site on port 5000 --> site comes up with Form authentication window -->Enter my userid and password, and hit the submit button
SHAREPOINT COMES UP WITH UNKNOWN ERROR
see this related article:
http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx
Please someone help me out on the sharepoint side to get me on the run, I feel that there is some trivial stuff is missing in the loop.
Thank you in advance, appreciate all your help
Please help me out, i stuck in this from last 2 weeks to get my FBA
Neel