ASP.Net User Management
Java Programming For The Absolute Beginner
|
Subjects > Computers > Software > Programming > Web Application Programming For .NET
![]() | Professional ASP.NET 2.0 Security, Membership, and Role Management |
Otber topics: * Single ASP.NET Login To Multiple Domains And Subdomains
Devstudio 2005 and ASP.NET 2.0 provide an ASP.NET Web Site administration tool. It gives a nice way to list users, list their roles, list roles on the system, setup new roles, and assign roles to users. It does have some limitations though:
Add this to the system.web portion of the web.config file for the web application:
And this needs to be part of the connection strings:
Q. Has anyone modified ASP.NETWebAdminFiles?Create to run on their webserver? This tool manages membership, and comes with vs.net 2005.
Create a virtual directory ASP.NETWebAdminFiles in IIS that point to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles
Open properties windows of the new virtual directory, make sure that it is configured to run with ASP.NET 2.0, and in Security tab, uncheck Anonymous Access, check Integrated Windows Authentication.
After that, you will be able to connect to WebAdminTools using the following syntax
http://localhost/ASP.NETWebAdminFiles/default.aspx?applicationPhysicalPath=XXX&applicationUrl=/YYY
in my case, it is:
http://localhost/ASP.NETWebAdminFiles/default.aspx?applicationPhysicalPath=D:\Tasks\Libranyon\Photonyon\&applicationUrl=/Photonyon
Although I don't recommend to do it, if you want to access WebAdminTool from other computer, open WebAdminPage.cs from (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code) and comment the following code block
if (!application.Context.Request.IsLocal) {
SecurityException securityException = new SecurityException((string)HttpContext.GetGlobalResourceObject("GlobalResources", "WebAdmin_ConfigurationIsLocalOnly"));
WebAdminPage.SetCurrentException(application.Context, securityException);
application.Server.Transfer("~/error.aspx");
}
WebAdminTool still be protected by Intergrated Windows Authentication, so you still some have some defense here.
Could not find Programming/BottomAd1?Create
Search for books about:
|
Interested in HomePages/Magic11221959?