Thanks for Sean and David 's input.
Hello igotyourdotnet,
As for the intranet application, you mentioned that you do not want the
client users to log into site at all, do you mean you do not want to
explicitly prompt (a form) in your web application to accept user's
username/password credential but automatically get their windows identity
information? If this is the case, you can enable integrated windows
authentication for the ASP.NET's virtual directory in IIS and also disable
anonymous access. Thus, the IIS will help automatically authenticate the
client request and get the windows identity info. Also, in your ASP.NET
application, you need to configure it to use "Windows" Authentication so
that you can get the user identity in ASP.NET code. e.g.
====================
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("<br/>user: " + User.Identity.Name);
}
====================
For your scenario, you also want to provide role based authorization on
page resources, since the roles should be application specific (not quite
coupled with windows user groups), I suggest you use custom storage like
database to store the roles for each windows user. And the ASP.NET default
SqlRoleProvider is capable of this. So here you can use windows
authentication + SqlRoleProvide together to provide role based url
authroization against windows users. Also, for the menu item displaying
(depending on user role), you can use the security Trimming feature of the
ASP.NET SiteMapProvider.
#ASP.NET Site-Map Security Trimming
http://msdn2.microsoft.com/en-us/library/ms178428.aspx
And there is a good example demonstrating all the above things I mentioned
from scottgu's blog:
#Recipe: Implementing Role-Based Security with ASP.NET 2.0 using Windows
Authentication and SQL Server
http://weblogs.asp.net/scottgu/pages/Recipe_3A00_-Implementing-Role_2D00_Bas
ed-Security-with-ASP.NET-2.0-using-Windows-Authentication-and-SQL-Server.asp
x
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.