Atlanta .NET Regular Guys

Recent Posts

Tags

News

  • Brendon Schwartz - Email Me
    Matt Ranlett - Email Me

    Brendon Schwartz

    MVP Logo
    Community Kit for SharePoint
    View Brendon Schwartz's profile on LinkedIn
    <iframe src="http://gamercard.xbox.com/B%20Funk%20DevCow.card" scrolling="no" frameborder="0">B Funk DevCow</iframe>

    Matt Ranlett

    Matt Ranlett MVP Logo
    <iframe src="http://gamercard.xbox.com/TestDummy.card" scrolling="no" frameborder="0">TestDummy</iframe>

    Community Links

Community

Email Notifications

    Useful Links

    SharePoint 2007

    ASP.NET 2.0

    Atlanta Area Bloggers

    BizTalk

    SharePoint 2007 WebControls

    SharePoint 2007 Development

    Archives

    Custom SharePoint List-based Membership and Roles Provider

    I've finally finished (almost) with the project that has been keeping me up late at night.  I want to thank Doug Ware, Brendon Schwartz, Dan Attis, and Adam Buenz for all the help they gave me over the past several months while I struggled to bring this beast to its knees.

    I did some cool work so I thought I'd post it online.  Look for this to be the focus of several upcoming blog posts and eventually a white paper of some sort or other.

    I sought out and received permission from my employer, Intellinet, and my client, Preparis, to post this code online in its entirety.

    CodePlex banner Here is the code - http://www.codeplex.com/SPListMP

    I've created a custom membership and role provider for SharePoint, which uses a SharePoint list as the backing store for users.  This gives me a couple of neat benefits:

    1. I've got totally discrete user stores despite the fact that potentially dozens of site collections are on the same server.  This means I can back up my users along with my site!
    2. I've got familiar and easy to use list management tools to maintain my users and my roles
    3. I've got the ability to do cool custom code based on my custom roles, including the ability to have custom welcome pages for each user role (ok, so this isn't restricted to my custom providers, but it's cool nonetheless)

    I'm excited about this, and I plan to work on the code a lot as time goes on to get it right.  The code works now, but there are elements I'm not that proud of as I was forced to make cuts to get it done and out the door.

    Comments

    Harold Gray said:

    Ditto - Got everythig working except the login page. Also, the downloadable WSP installs and works. Compiling the source does not work - after the wsp is created without error and installed. Activiation doesn't happen automatically. If you try it manually you get an error saying somethimg must be activated prior to activating your tool.
    # October 3, 2007 1:30 AM

    Harold Gray said:

    Matt,

    I finallly got everything working. Developed a login page that I uploaded to Codeplex.

    Thanks for a great piece of work.
    # October 16, 2007 7:59 AM

    Neel said:

    Matt,

    Great tool

    I was wondering, using the provider, if i can connect to a sql server on the network and use it to save the users

    I have around 12000 user accounts, which are already in use, i want to use the same userid and password for validation using forms auth.

    Help me out asap

    Neel
    # October 29, 2007 7:25 AM