custom database table for memberships and roles

I have an asp site that i'm converting to .NET and am trying to wrap my head around forms authentication, memberships, and roles. In this site, I have a LOGINS table that contains all of the user info for my site. Obviously, I'd like to keep this table in tact and use it for memberships. I know there's a script that can be run that creates all of the tables needed, and then in web.config there's some configuration settings that are done, then it works. How can I configure it to use my LOGINS table? I found http://msdn.microsoft.com/en-us/library/6tc47t75.aspx but it seems like a lot of code to do what I want, is this my only option?
LVL 34
Big MontySenior Web Developer / CEO of ExchangeTree.org Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

urir10Commented:
i had a similar situation with one of my project, but instead of rewriting the asp membership i kept the existing user table and used the asp db along side. i would have duplicate user info in two table but than one table will be fully customizable by me and one only for use for the membership.

I know it doesnt really answer your question, but its something to think about.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve BinkCommented:
When you use the built-in ASP.NET memberships and roles, you are using a specific membership provider.  To replace it (in part or in whole), you would need to create a new membership provider.  The link you provided is an example of how to do just that, and demonstrates what is required for the task you want to complete.  urir10 definitely has the easier option.

Short answer: you can't.  Long answer: you can create a new membership provider that uses your specific table instead of the defaults.
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Author Commented:
hmmm, thats what I was afraid. Maybe I can import my custom user table into the new membership table or something.

i'm going to leave this open for a few days and see if anyone else has any opinions, otherwise I'll split the points between the two of you.

Cheers
Josh
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.