Solved

How to create a page with integrated security !

Posted on 2007-11-20
1
145 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A short film showing how OnPage and Connectwise integration works.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now