473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What is the Use of <Identity Impersonate="true">

Hi,
What is the use of <Identity Impersonate="true" />
How can we implement this in an ASP.NET application
When are we supposed to use this.
please provide me the details with an Example.
Raghuram
Nov 19 '05 #1
3 5886
Hi!

You can make your application run under another account than ASPNET. I.E.
you need access to the filesystem somewhere ASPNET doesn't have access. To
do this, you can insert the <identity> element in web.config like this:
<configuration>
<system.web>
<!-- anywhere you'd like inside system.web -->
<identity impersonate="true" userName="xx" password="xx"/>

If you're gonna use this on a production server, I recommend reading the
following article. It explains how you can move the user/pass values to the
registry instead of having them in clear text in web.config.
http://support.microsoft.com/default...b;en-us;329290

HTH,
Lars-Erik

"Raghuram" <rv******@gmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,
What is the use of <Identity Impersonate="true" />
How can we implement this in an ASP.NET application
When are we supposed to use this.
please provide me the details with an Example.
Raghuram

Nov 19 '05 #2
As Lars-Erik says, you can have the requests executing with a
different identity. Without a username and password in the element the
request will execute with the identity of the client, and you can
access resources on the server that the ASPNET / NETWORK SERVICE
accounts cannot get to.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 18 Apr 2005 15:07:20 +0530, "Raghuram" <rv******@gmail.com>
wrote:
Hi,
What is the use of <Identity Impersonate="true" />
How can we implement this in an ASP.NET application
When are we supposed to use this.
please provide me the details with an Example.
Raghuram


--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #3
The other situation where you'd use this (in addition to the other replies)
is if your code needs to access a resource have you need to authenticate
as the user that's using your application. So every request would do security
checks with the credentials of the user making that request (as opposed to
a dedicated account when you specify a username/password). This requires
you to be using windows authentication.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,
What is the use of <Identity Impersonate="true" />
How can we implement this in an ASP.NET application
When are we supposed to use this.
please provide me the details with an Example.
Raghuram


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Arvid Andersson | last post by:
Hello, I need to convert a string to a number, but the string can contain +,-,* and / as well as parenthesis. For example, if I have the string "30/(6+9)" I would like a function that returned the...
1
by: Anton ml. Vaheie | last post by:
How do I convince (what I have to set in asp.net server) that my program that is using <authentication mode="Forms" /> can write to, copy, etc. files in directories on local disk? I have given...
2
by: joeted | last post by:
Hello, I am trying to run a batch file on a (remote) .NET server (i'm not the admin) using system.diagnostics.process I find that the batch file is successfully executed. However, when i...
2
by: franzhe | last post by:
Hi all, in a simple ASP.Net application with resources in satellite assemblies I have the following problem: If I set <identity impersonate="true"/>, accessing a culture specific resource...
6
by: Meena Desai | last post by:
Hi, What are the effects of using <identity impersonate="true"/> in web.config on windows auhtentication? Does it affect windows security? Thanx in advance, Meena.
18
by: =?Utf-8?B?VG9t?= | last post by:
is it possible to add a bunch of users to group and only allow group to access the web page or do I need to add each user to the web.config file? Or is there another way to do this? I just took...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.