Proposed Answer regarding fba login users details

  • Tuesday, May 08, 2012 4:52 AM
     
     

    Dear Sir/Madam,

    i want to create a seperate login page for fba users and seperate database for fba users, is it possibke if so how.??

    actually i have created a login page for both fba and windows authentication users, but the problem is that for fba users i cant have firstname lastname, designation in the defaulr sql table anpnet_users. instead when i create a user it stores only username in asp.net_users, and email and password in asp.net_members, and asp.net_roles.  so it is storing in three different tables, and the content database for my site it stores different roles compared to my asp.net_roles,

    can u help me out.

    actually my requirement is to display all the fba login users off a site in sp2010 to  webpart with sorting and filtering options.

    regards

    susheel

All Replies

  • Tuesday, May 08, 2012 5:09 AM
     
     

    Hi,

    1- You need to enable Claim Authentication (FBA and Windows Auth)

    check these posts for example 

    http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/

    http://blogs.technet.com/b/mahesm/archive/2010/04/07/configure-forms-based-authentication-fba-with-sharepoint-2010.aspx

    2- Create custom login page for both FBA and Windows Auth

    for example check this

    http://tomaszrabinski.pl/wordpress/2011/06/23/sharepoint-2010-custom-login-page/

    3- check this for FBA user management in codeplex

    http://sharepoint2010fba.codeplex.com/


    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

  • Tuesday, May 08, 2012 7:03 AM
     
     

    Hi ,

    Thanks for ur reply,

    but the thing is is there any other option apart from creating users in inetmgr (IIS) instead of this can we use any other option to creat .net users and stores in sql database.

  • Tuesday, May 08, 2012 7:18 AM
     
     Proposed Answer

    Hi ,

    Thanks for ur reply,

    but the thing is is there any other option apart from creating users in inetmgr (IIS) instead of this can we use any other option to creat .net users and stores in sql database.

    The method described in the article does store users in the SQL database (no users are created in IIS). IIS is only used to configure the Web Application to use the membership provider and role manager (add entries to the web.config). 

    As for the tables in the .Net Membership store, this is by design and cannot be changed. If you want to be able to save all user info in one table you will have to create your own custom membership store. Here's a resource that can help you with that.


    MCPD, MCITP, MCTS

    • Proposed As Answer by Ashar2k11 Tuesday, May 08, 2012 7:39 AM
    •  
  • Tuesday, May 08, 2012 11:20 AM
     
     

    Hi,

    If you check this http://sharepoint2010fba.codeplex.com/ which provide you with web parts which enable you to create Users from Site and not from IIS.


    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

  • Monday, May 14, 2012 9:00 AM
     
     

    Hi fadi AbdulWahab,

    i have one requirement.

    when i click on people picker it has to display all the users with sort and filter options.

    on the lefthand side of the page it must contain alphabets with hyperlinks

    for last name and first name, so when i click on these links it has to display that names based on the alphabet.

    can u help me out thorugh custom coding.

    ragrds,

    susheel

  • Monday, May 14, 2012 9:33 AM
     
     

    Hi,

    I don't know pre-defined example but check this example and re-develop it as your requriement

    http://sharepointsolutions.com/sharepoint-help/blog/2009/10/create-a-custom-picker-in-sharepoint-2010/


    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

  • Monday, May 14, 2012 10:52 AM
     
     

    can i have any links for creating hyperlink buttons for alphabets ()a-z

  • Wednesday, May 16, 2012 4:49 AM
     
     

    hi hru,

    when i am creating a custom login page for forms based authentication i am getting an error 404 page not found.

    i want to change the dropdownlist selection page into normal login window page

    incode behind my code is

    <asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle"
        runat="server">
        <SharePoint:EncodedLiteral runat="server"
            EncodeMethod="HtmlEncode" ID="ClaimsFormsPageTitle"
            Visible="false" />
        My Custom Login
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
        runat="server">
        <SharePoint:EncodedLiteral runat="server"
            EncodeMethod="HtmlEncode" ID="ClaimsFormsPageTitleInTitleArea"
            Visible="false" />
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSiteName"
        runat="server" />
    <asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderMain"
        runat="server">
        <SharePoint:EncodedLiteral runat="server"
            EncodeMethod="HtmlEncode" ID="ClaimsFormsPageMessage"
            Visible="false" />
        <asp:Login ID="signInControl" FailureText="<%$Resources:wss,login_pageFailureText%>"
            runat="server" Width="100%" DisplayRememberMe="false" />
    </asp:Content>

    and in .cs it is

    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.IdentityModel.Pages;

    namespace HIFXLoginPage.Layouts.HIFXLoginPage
    {
        public partial class HifxCostomLoginPage :FormsSignInPage
        {
            protected void Page_Load(object sender, EventArgs e)
            {
            }
        }
    }

    in authentication when i am selecting custom login and gave the url as ~/_layouts/HIFXLoginPage/HifxCostomLoginPage.aspx

    i am getting error 404 page not found

    can u help me out