473,395 Members | 2,192 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,395 software developers and data experts.

Effects of <identity impersonate="true"/>

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.
Nov 19 '05 #1
6 3106
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***@intraactionsoftware.com> wrote in message
news:OL**************@TK2MSFTNGP15.phx.gbl...
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.

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="true" /> 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.com.au> wrote in message
news:#D**************@TK2MSFTNGP09.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="true"/> 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 "Impersonate the Authenticating User in Code" from the
article u referred as below (in Visual C#):

System.Security.Principal.WindowsImpersonationCont ext
impersonationContext;
impersonationContext =
((System.Security.Principal.WindowsIdentity)User.I dentity).Impersonate();
// Insert your code that runs under the security context of the
authenticating user here.
impersonationContext.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*******@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.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="true"/> 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
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...
3
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....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.