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. 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.
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!
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.
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.
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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.
|
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...
|
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
| |
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...
|
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...
|
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. ...
|
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...
|
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...
|
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...
| |
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |