Solved

How to create a page with integrated security !

Posted on 2007-11-20
1
149 Views
Last Modified: 2013-12-17
Hi,

I am trying to create a ASP.NET page using C# with the integrated security, which can be accessed by only admin account and one other user account.
So how can i achieve this for my page.
Thank you.
0
Comment
Question by:srini4595
1 Comment
 
LVL 23

Accepted Solution

by:
Jens Fiederer earned 125 total points
ID: 20322887
To use integrated security, you must turn OFF anonymous access in IIS (and CHECK Integrated Windows security).

Then in your page load event, check the value of User.Identity.Name - if it is not one of the approved accounts, redirect to an error page.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question