Updated 02/09/2008

Nothing new here, I think its a pretty well known fact that you can roll your own MembershipProvider and use that with SharePoint to do FBA, if it is news then even better, your learning! 

For a potential client of ours, they want to do FBA on SharePoint and they have a custom backend user management tool.  So naturally, I'm going to have to write a custom provider for this.  I've done this before in the past, but I always find myself referring to Dave Mann's posting on the subject.  Since I don't want to reinvent the wheel here and frankly I don't have anything new/profound to say on the subject, I'll just refer you to Dave's stellar posting about writing your own provider and using it for FBA in SharePoint.

http://www.kcdholdings.com/blog/?p=113

Dave's blog is also filled with great SharePoint knowledge, so I encourage you to check out his site.

 

Update (02/09/2008):

Since it had been quite awhile since I had to write a custom forms based authentication provider, I realized that Dave's article above doesn't give you everything you need to implement a solution.  His article is only about MembershipProviders....there is still potentially a RoleProvider that you have to write (unless you want to manually add every FBA user by hand and set their permissions in SharePoint....that is a very BAD idea).

So, to supplement Dave's article I wanted to provide you with a few more links giving you more start to finish steps.

 

In a nutshell, here are the steps to implement a custom Membership Provider, and a custom Role Provider:

  • Create your own Membership Provider (only need to implement roughly 7 of the methods since SharePoint only uses those)
  • Create you own Role Provider (only need to implement roughly 2 methods since SharePoint only uses those)
  • Create an "external" zone for your site
  • Add web.config entries to Central Admin, "Internal" site, "External" site, to instruct how to use your custom Membership/Role Providers
  • Set your "external" zone to use your custom Membership/Role Providers
  • In your "Internal" site, give permissions to your custom Roles, users, etc.
  • Test everything by logging into your "External" site and make sure that all your roles and specific users have the necessary permissions within SharePoint

So here's those links I was referring to.

Andrew Connell's post about FBA : http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx

Dan Attis's 2 part posting about FBA Part 1 : http://devcow.com/blogs/jdattis/archive/2007/02/23/Office-SharePoint-Server-2007-Forms-Based-Authentication-FBA-Walkthrough-Part-1.aspx

Dan Attis's 2 part posting about FBA Part 2 : http://devcow.com/blogs/jdattis/archive/2007/03/01/Office-SharePoint-Server-2007-Forms-Based-Authentication-FBA-w-MySites-Walkthrough-Part-2.aspx

Robert Bogue's Tips/Gotcha's about writing custom FBA : http://thorprojects.com/blog/archive/2007/06/24/664.aspx


Posted in:   Tags:

Comments


United States Anabhra
June 26. 2008 07:53
Anabhra
We are facng some difficulty implementing the role provider. What we wish for is to execute a wild card search that not only return user's but also roles/groups. By implementing the 2 role provider methods that Microsoft talks about, we have to enter the exact group name to get the role provider to return the group...Is this the only way to make it work ie; execute wild card searches?

no site


May 8. 2009 10:10
sulumits retsambew
what a great article, i'm so impressed.

http://phreakaholic.com/sulumits-retsambew/http://phreakaholic.com/sulumits-retsambew/


June 21. 2009 04:12
Voguish
I liked your post. Keep posting interesting matters here.

http://www.voguishchic.info/http://www.voguishchic.info/


June 23. 2009 16:53
Custom Banner


This information I got in this site will surely make so handy I wonder I will tell my friends this site,.,

http://www.ballyhoobanners.com/http://www.ballyhoobanners.com/


January 16. 2010 03:09
bathroom remodel ideas
Good ideas to choose BlogEngine.Net as your blog platform.
I like using blogengine too, because that is easy and user friendly for newbie like me.
happy writting.

Regards,
Mufet

http://www.bathroomvanityfurniture.net/bathroom-remodel-ideas.htmhttp://www.bathroomvanityfurniture.net/bathroom-remodel-ideas.htm


January 25. 2010 07:16
no credit check loans
We must have a theme, a goal, a purpose in our lives.

http://cashusloans.com/loans.htmlhttp://cashusloans.com/loans.html


January 27. 2010 12:12
traveling idea
I really like your writing style,its not generic and extremly long and tedious like a lot of blog posts I read, you get to the point and I really enjoy reading your articles! Thanks for sharing..

http://www.travelingidea.com/http://www.travelingidea.com/


January 27. 2010 14:21
landscaping gold coast
I like the post very much because I search these stuff for my best friend who is very much interested in it. Thanks.

http://www.naturesbestlandscaping.com.au/http://www.naturesbestlandscaping.com.au/


February 1. 2010 08:06
Loans in South Carolina
A good laugh makes us better friends with ourselves and everybody around us.

http://superpaydayloan.com/state/South-Carolinahttp://superpaydayloan.com/state/South-Carolina


February 4. 2010 14:12
pabx panasonic
very nice thank's Smile

http://djayabersama.com/http://djayabersama.com/


February 5. 2010 23:53
dstarlight
an interesting ... Smile

still learning
Ace dstarlight

http://dstarlight.com/http://dstarlight.com/


February 7. 2010 06:51
cinsellik
Thanks for good information.

http://www.cinselhaz.com/http://www.cinselhaz.com/


February 7. 2010 18:44
Rebecca34ay
On this page students should find really hot issue corresponding with this good post. With your help the the best sides of <a href="http://www.primewritings.com/blog/">our blog</a> used to be so pure. People guess that after this used to be easy to receaive well done <a href="http://www.primewritings.com">custom essay service</a> at custom essays writing service.

http://www.primewritings.com/http://www.primewritings.com/


February 8. 2010 02:25
ssk sorgulama
Thanks for good information.

http://www.sskbank.com/http://www.sskbank.com/


February 8. 2010 05:26
cash loans
The supreme happiness in life is the conviction that we are loved.

http://cashusloans.com/http://cashusloans.com/


February 8. 2010 05:31
loans
To do two things at once is to do neither.

http://cashusloans.com/payday-loans.htmlhttp://cashusloans.com/payday-loans.html


February 9. 2010 02:53
payday loans
All successful people men and women are big dreamers. They imagine what their future could be, ideal in every respect, and then they work every day toward their distant vision, that goal or purpose.

http://fastloansus.com/http://fastloansus.com/


February 9. 2010 13:49
Kristin32
Students have got nowadays good Internet resources to order the dissertation references and just brilliant topic related to this post in the experienced <a href="www.master-dissertations.com">dissertation</a> service.

http://www.master-dissertations.com/http://www.master-dissertations.com/


February 12. 2010 23:16
Sikat ang Pinoy
wow..nice blog.. i love reading it.. thanks...

http://www.paslit.com/http://www.paslit.com/


February 15. 2010 20:58
Webthesurfi Rugs Webdesign
Nice blog.. Very informative...

http://mysmartblog.net/webthesurfi-rugs-webdesign/http://mysmartblog.net/webthesurfi-rugs-webdesign/

Search Blog

Blog Roll

    OPMLDownload OPML file

    Recent Comments

    Banners

    Theme Grabber
    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 Tony Testa's World