ASP.NET and user roles and passwords

Greetings

I am about to enter the "murkey" world of roles/users/logging in and want to start off on the right foot.

As I understand it, I use the ASP.NET Configuration tool to creatre/modify my users.

My questions:

(1)  Once I have deployed my application, how does the customer manage users? Do I have to deploy
       additional tools? Is it done automatically?
(2)  How does a user change his/her password? Is it possible to do this from within the application (via a
      "User Change Details" page) ?? How do I access that user data?

In advance, many thanks!
allanmarkAsked:
Who is Participating?
 
MogalManicCommented:
1,  How to provide the user management - add.change/delete users, user changing his password - to
     my customer. Obviously I don't want him having the ASP.Net configuartion tool or fo I ??)

You will have to write your own pages for end user AND administrative user management.  There are a lot of custom controls and APIs that make the job easier, but you still have to implement the pages (or find implementations on the web).
 

2.  Where in SQL Server does it store the membership details?
ASP.Net has a script to create the membership schema called aspnet_regsql.exe  It is in the v2.0 framework directory for .net (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 on my machine)
You can use the script to create the membership tables/views in SQL server database.
0
 
DhaestCommented:
Perhaps you can find some interesting information in the following article.
Introduction to ASP.NET 2.0 Roles and Membership
http://www.wwwcoder.com/tabid/68/type/art/parentid/258/site/6297/default.aspx
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
MogalManicCommented:
The administration pages from the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\Security\Users and C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\Security\Roles
directory and then modified:
  1) replace <%@ MasterType virtualPath="~/WebAdminWithConfirmation.master" %> with your master page
  2) replace calls to CallWebAdminHelper...() with Membership and Roles API calls
  3) replace <%$ Resources: with your custom strings (they can probably just be hard coded

For users managing themselfs (ie recovering/changing passwords) you will have to write your own pages with the help of <asp:PasswordRecovery> controls just as Dhaest's link describes
0
 
allanmarkAuthor Commented:
Thanks!!  - Have had a brief squiz at the above - some serious weekend reading oming up.

I still am unsure on the following:

1,  How to provide the user management - add.change/delete users, user changing his password - to
     my customer. Obviously I don't want him having the ASP.Net configuartion tool or fo I ??)

2.  Where in SQL Server does it store the membership details?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.