views:

1260

answers:

6

I have a SharePoint 2010 site that is configured for Forms Based Auth using custom role, membership and profile providers. This works perfectly using the OOTB SharePoint 2010 FBA form (ie. under /_forms in the web app virtual directory).

My problem is with a custom login form that is located in a separate folder, /Landing/Login/default.aspx. I've configured the web app to point to this form (contains an unmodified ASP.NET login control), which is rendered when the user hits the root URL. The problem comes when they submit their credentials and the form posts back for the redirection to /_layouts/Authenticate.aspx. It stops cold with a 403.

If I revert back to the OOTB FBA form (using the same providers) everything works fine. Any suggestions on what could be going wrong?

+1  A: 

So, I discovered the solution after examining the OOTB FBA login form that inherits from Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage and taking a look at the code with Reflector.

I modified my custom form to inherit from the same object and replicated the content placeholders (some I put into a panel control with the visibility set to false) from the OOTB Form.

Presto. My custom form now authenticates flawlessly. On reflection, this seems an obvious thing to do, just isn't documented anywhere.

Chris R Chapman
A: 

Hi Chris, How you configure Claim base authentication? We are tried from last 10 days but we still facing FBA issues.Please provide needful help/link @ your end.

Thanks, Nandy

Nady
Hi Nandy - I've collected some links to blog posts for configuring 2010 FBA on Delicious. See them here: http://delicious.com/chapalahara/fbaMy top recommendations are to ensure you have added entries for your membership/role providers to the web.configs for the web app, central admin /and/ Secure Token Service web service. Also, make sure that your providers have been set up correctly (ie. SQL, LDAP) and that you have added your users or groups via the User Policy for the web app.This is all covered in the blog posts I've got on Delicious.Chris.
Chris R Chapman
A: 

I'm trying to create a site with fba using my own memebership and role provider. The problem i have is when i am creating the sitecollection from the central administration, my web app has windows and fba authenticacion, in the membership provider and role mananer i put my own providers. When i am creating the sitecollection in the administrator textbox is not finding the windows user... I don't understand why... My web application authorization is windows with FBA turn on. If i turn off the fba authentication in the web app, the windows user is working as the administration.... I don't understando why is happening this...

Thanks!

jav
Jav - double-check your web.config entries for your web app and central admin. Your people-picker should work the same in both places.Try going in through central admin and clicking on User Policy for your web app - try adding users to the web app for the zone you're using (default, I presume).
Chris R Chapman
+1  A: 

Hey Chris,

I'm totally new to SharePoint ... especially SharePoint 2010...

I have a web app that uses both Windows and FBA … I managed to make that work correctly after a considerable searches to get the best results on the web … now I need to automate this operation I found a solution that do this but I really don’t know “where to put what” when it comes to the code behind part and it’s been very disturbing to me lately :D … I wish you can help me with this please...

The solution I found is here

Thanks in advance, Ahmed Sherien

Ahmed Sherien
A: 

If you want to use ready-made solutions for the management of FBA users, you should take a look here:

http://www.devit.eu/products/121-fba-manager-sp2010-forms-based-authentication.aspx

Pavel Novotny
A: 

I just went through this process myself, and wrote up the steps I had to take to get FBA working with a custom login form. Hopefully it'll help the next poor soul that is trying to get this to work.

http://mikevallotton.wordpress.com/2010/10/18/sharepoint-2010-claims-authentication-custom-login-form-2/

MikeVallotton

related questions