473,587 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Effects of <identity impersonate="tr ue"/>

Hi,

What are the effects of using <identity impersonate="tr ue"/> in web.config
on windows auhtentication? Does it affect windows security?

Thanx in advance,

Meena.
Nov 19 '05 #1
6 3128
Hi,

it is simply a mean to execute code in the callers context.

see more in
http://msdn.microsoft.com/library/de...ersonation.asp

regards
Joyjit

"Meena Desai" <me***@intraact ionsoftware.com > wrote in message
news:OL******** ******@TK2MSFTN GP15.phx.gbl...
Hi,

What are the effects of using <identity impersonate="tr ue"/> in web.config
on windows auhtentication? Does it affect windows security?

Thanx in advance,

Meena.

Nov 19 '05 #2
Meena,
Try reading through..
http://www.4guysfromrolla.com/aspfaq....asp?FAQID=205
hope it helps.
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
Hi,

Thanx for ur quick reply.
I read the doc which u referred, but unfortunately there is nothing related
to the windows security in it. By enaling the impersonate, is there any
chance to break the windows security? Also will it affect other things? Will
my site be secure after using <identity impersonate="tr ue" /> from
unauthorised access?

I want to allow a registered user to delete some file. It shows me error
when I move my code from one folder to another. It deletes all the user
rights which I had given after moving the code folder. Is there any solution
to this problem?

Thanx,

Meena.

"Patrick Olurotimi Ige" <ig*@iprimus.co m.au> wrote in message
news:#D******** ******@TK2MSFTN GP09.phx.gbl...
Meena,
Try reading through..
http://www.4guysfromrolla.com/aspfaq....asp?FAQID=205
hope it helps.
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #4
hi meena ,

Generally, it's not a good idea to run all code while impersonating. This
can lead to some weird problems with permissions on kernel objects (threads,
processes, named synchronization objects) that get created while
impersonating. It also prevents efficient database connection pooling.
Read more form the author danseller

http://blogs.msdn.com/dansellers/arc.../13/89203.aspx

hope this article solves all your questions

regards
Ansil
Trivandrum

reach me at
an*****@satyam. com


"Meena Desai" wrote:
Hi,

What are the effects of using <identity impersonate="tr ue"/> in web.config
on windows auhtentication? Does it affect windows security?

Thanx in advance,

Meena.

Nov 19 '05 #5
Hi Ansil,

Thanx for ur guidance.
I got a way for "Impersonat e the Authenticating User in Code" from the
article u referred as below (in Visual C#):

System.Security .Principal.Wind owsImpersonatio nContext
impersonationCo ntext;
impersonationCo ntext =
((System.Securi ty.Principal.Wi ndowsIdentity)U ser.Identity).I mpersonate();
// Insert your code that runs under the security context of the
authenticating user here.
impersonationCo ntext.Undo();

But this method requires that the authenticating user identity is of type
WindowsIdentity . While I am using Forms authentication.
Is there any way to do the same thing with Forms authentication?

Thanx,
Meena.

"Ansil MCAD" <An*******@disc ussions.microso ft.com> wrote in message
news:E9******** *************** ***********@mic rosoft.com...
hi meena ,

Generally, it's not a good idea to run all code while impersonating. This
can lead to some weird problems with permissions on kernel objects (threads, processes, named synchronization objects) that get created while
impersonating. It also prevents efficient database connection pooling.
Read more form the author danseller

http://blogs.msdn.com/dansellers/arc.../13/89203.aspx

hope this article solves all your questions

regards
Ansil
Trivandrum

reach me at
an*****@satyam. com


"Meena Desai" wrote:
Hi,

What are the effects of using <identity impersonate="tr ue"/> in web.config on windows auhtentication? Does it affect windows security?

Thanx in advance,

Meena.

Nov 19 '05 #6
HI Meena,
With forms Auth u have to use Anonymous access!
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #7

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

Similar topics

8
2329
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 number 2. I actually wrote a java function that did this a couple of years ago, in school, as an excersise in "binary trees". I lost it, and most...
1
1810
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 full permisions to local directory (IUSR_Machinename user), but I still get: "System.UnauthorizedAccessException: Access to the path...
2
2106
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 put <identity impersonate="true"/> in my web.config i get an "access denied" exception.
2
7266
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 from a satellite assembly fails with the error message: "Could not find any resources appropriate for the specified culture (or the neutral culture) in...
3
5900
by: Raghuram | last post by:
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
18
4754
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 over a project and most of the web sites have users defined in the web.config file that can access the site. Now users come and go so this config...
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8205
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6619
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.