Help hooking into 2.0 membership w/existing users, roles

Discussion in 'ASP .Net Security' started by dw, May 14, 2006.

  1. dw

    dw Guest

    Hello -

    We have an existing ASP.NET 1.0 web site that already has a set of tables
    for Users (user id and password plus many other attributes), Roles, etc.

    We are trying to migrate to ASP.NET 2.0 and we're hoping to hook into or
    extend the memberhsip and security features that are part of the 2.0 feature

    Is this possible? And, if so, is it a difficult process? Are there any
    links or articles on how to accomplish this? I have searched around and have
    found some the explain how to extend the 2.0 stuff...but not with an
    already/existing database of users and roles.

    thanks for any help.
    - will
    dw, May 14, 2006
    1. Advertisements

  2. dw

    PeterKellner Guest

    I'm assuming you are using sqlserver? Probably, the easiest thing to do
    would be to take the source to the Membership Provider Microsoft has so
    generously made availabe and modify it to access your tables instead. For
    my own purposes, I have a simple Membership Provider that I use that doesn't
    have all the bells and whistles microsoft provides.

    Good luck.
    PeterKellner, May 14, 2006
    1. Advertisements

  3. dw

    dw Guest

    Yes, we're using SQL 2005. What we don't want to do, if possible, is to have
    to maintain two sets of User and UserRoles tables. We already have those
    tables in place and working with our 1.1 web site. Modifying the MS
    Membership Provider sounds like the right way to go, though I would be
    concerned about future updates from MS that we might not be able to implement
    because we have modified to use our own.

    Guess we'll see.

    Thanks for the feedback.
    - will
    dw, May 14, 2006
  4. dw

    PeterKellner Guest

    I think you are OK with future updates as long as you role your own
    provider. They may add functionality, but I don't believe they will break
    anything existing. (but then again, I'm not the betting type).

    Good luck.
    PeterKellner, May 14, 2006
  5. always ask yourself why you want to do that. It seems you have a working
    solution already - what do you gain from forcing this solution into the provider

    don't just do providers for providers sake -

    and btw - the login controls can also be used without a provider.
    Dominick Baier [DevelopMentor], May 14, 2006
  6. dw

    dw Guest

    I agree...but I have a boss that wants to force this new I
    don't have a choice. I am trying to reduce the potential risk and find an
    easy way to support the new providers.
    dw, May 14, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.