Administration of ASP.NET applications has always been easy, although diving into the XML-based configuration file isn't the most user-friendly way to do it. For the 2.0 release of ASP.NET, there is the Web Administration Tool, which allows configuration of a Web application via an easy browser interface.
There are two main reasons why the Web Administration Tool is useful. First, it abstracts the XML configuration into an easy-to-use interface, and second, it provides administration features via a browser. This means that for remote sites (such as those provided by a hosting company), it's easy to administer an application without having to edit the configuration file (e.g., to add new security credentials) and then upload it.
The Web Administration tool is available for each directory configured as an application, by way of a simple URL:
This presents you with a home page and menu consisting of five main options.
The Home page, shown in Figure 6.15, details the current application and security details, as well as links to the other main sections.
The Security page, shown in Figure 6.16, offers two options for configuring security. The first is a wizard that takes you through the following steps:
Select Access Method, which defines whether the application is available from the Internet (in which case Forms Authentication is used) or from the LAN (in which case Windows Authentication is used)
Specify Data Source, where you can specify the database (Access or SQL Server) that will store the user credentials and what details are required (e.g., unique e-mail address, allow password retrieval, and so on)
Define Roles, where you can optionally specify Authorization roles
Add New Users, which allows addition of new users and allocation to roles
Add New Access Rules, which defines which files and folders users and roles have permissions for
Complete, to indicate that the security settings have been configured
The second option is for configuration of security that has already been enabled, as detailed in the following subsection.
Once security is initially set up, or by selecting the second option titled Security Management on the main Security page, the Security page allows management of users, roles, and permissions without the use of the wizard. For example, consider the users added earlier in the chapter. If we select the Manage Users options, we see the User Management features shown in Figure 6.17.
Likewise, selecting Manage Roles allows you to customize roles and members, as shown in Figure 6.18.
Not all features of the user and role management are implemented in the preview release. |
The Personalize, Reports, and Data Access pages are not currently implemented but will be available in a later release.