locked
How to provide form based authentication for MOSS 2007 RRS feed

Answers

  • http://cks.codeplex.com/discussions/81352

    A better approach in this case is to create a customized login.aspx in _layouts that inherits from UnsecuredLayoutsPageBase.   Basically copy the existing login page, and customize it.  Put it in a subdirectory of the _layouts folder, and point your web.config to it.  You can have any number of these pages, one for each web application if you want, so that it can be branded.

    Here's a good article on doing this:

    http://www.devx.com/enterprise/Article/35068/0/page/1

    • Marked as answer by Hitchs Monday, June 11, 2012 8:50 PM
    Wednesday, June 6, 2012 4:27 PM

All replies

  • Hi,

    Where did you create this web site ? on any DEV box ?


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights

    Wednesday, May 30, 2012 7:17 PM
  • Yes, I created it on DEV machine. when I click run button on VisualStudio it opens up a website with url as localhost://someport_number and I've different options to see users,add users etc. in that site. Now how can we take this site to Prod or what is the recommended way to add users to database?

    Thanks, Hitchs

    Wednesday, May 30, 2012 7:36 PM
  • do you want same users from DEV to PROD?

    in this scenario you have to move site content DB from DEV to PROD, then on another step you have to move FBA DB from DEV sql to PROD sql. (I am not quite sure on step 2)

    on the 3rd step you have to make the same changes which you did on DEV web.config file

    I preferred to create a new SQL DB for FBA users instead of moving it from DEV box as I am not sure if it will work or not.


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights

    Thursday, May 31, 2012 12:18 AM
  • Thnks Pratik for your help!

    Actually, I was asking about the site to add users, not the SharePoint site. If you see the link I've provided in the first thread, there is a asp.net website to add users to FBA DB. How to get that site to production or do you recommend any other way to get FBA done to my web app.


    Thanks, Hitchs

    Thursday, May 31, 2012 2:40 AM
  • Hope this could help you http://cks.codeplex.com/releases/view/17901

    Regards,

    Veera

    Thursday, May 31, 2012 9:44 AM
  • Hi Veera Rai

    I appreciate your help and time.

    I'm successfully able to create a database and deploy those features as you mentioned in that URL. How can I make my custom page which is loaded with these webaprts as welcome page? eventhoug I'm accessing my custom page URL, it is redirecting to http://myserver/_layouts/login.aspx.

    I know how to make in a publishing site, I dn't know how to do in team site. Even if it is publishing site, it may redirect to that default login page of sharepoint, then it shows my welcome page right?

    I tried to open that site in designer and it says it was password protected and is not letting me open the site. How can I get rid of that default login page and get this webparts loaded page as welcome page.


    Thanks, Hitchs

    Saturday, June 2, 2012 12:44 AM
  • Hi,

    I really appreaciate your help and valuable time.

    My main idea is to get the same branding to login page like anyother page in the site.

    I was able to track where the login page is coming from. It's web.config file

    <authentication mode="Forms">
          <forms loginUrl="/_layouts/login.aspx" /> and I changed to "/pages/custom.aspx" but no luck.

    When I did that, I'm getting 401 unauthorized error. these are the steps I followed

    1. Created a new webpart page in pages doc lib.

    2. Added those webparts to custom.aspx.

    3. changed loginUrl="/_layouts/login.aspx" /> to "/pages/custom.aspx"

    When I try to open the site, it shows 401 unauthorized. Do I need to change anything else?

    Can anybody please help me out..


    Thanks, Hitchs

    • Marked as answer by Hitchs Wednesday, June 6, 2012 12:19 AM
    • Unmarked as answer by Hitchs Wednesday, June 6, 2012 12:19 AM
    Tuesday, June 5, 2012 9:40 PM
  • or Is there any other way to inherit the theme from the site to that login page?

    Thanks, Hitchs

    Wednesday, June 6, 2012 12:20 AM
  • http://cks.codeplex.com/discussions/81352

    A better approach in this case is to create a customized login.aspx in _layouts that inherits from UnsecuredLayoutsPageBase.   Basically copy the existing login page, and customize it.  Put it in a subdirectory of the _layouts folder, and point your web.config to it.  You can have any number of these pages, one for each web application if you want, so that it can be branded.

    Here's a good article on doing this:

    http://www.devx.com/enterprise/Article/35068/0/page/1

    • Marked as answer by Hitchs Monday, June 11, 2012 8:50 PM
    Wednesday, June 6, 2012 4:27 PM