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.