Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 743
  • Last Modified:

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!
0
allanmark
Asked:
allanmark
3 Solutions
 
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
 
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now