Ask a Question related to ASP.NET Security, Design and Development.
-
marcell@ids.co.za #1
CurrentPrincipal and new Thread
I have an ASP webapp that needs to access files using a UNC pathname to a
network-share
I setup "impersonation" and that all works as expected when executed in the
CurrentThread.
I need to kick-off a Method which will need exactly the same permissions
inside a new,long running, low priority Thread.
Problem is even if I set the new Thread's.CurrentPrincipal =
oldThread's.CurrentPrincipal ,
it displays the correct Identity.Name in the new Thread, but doesnt actually
adopt that old principal.
It moans about logon failure, and won't acually give me access to the Remote
Share.
One defffinite Solution is to Change the <processModel userName="..."
password=".."> tag in machine.config,
but this causes other problems as I have other WebApps that don't like
running under another account.
(and I don't think it's the right way to do it?)
Is there maybe a way to use one of the ThreadPools Threads for this job?
or is there a better way to do this?
Any Ideas?
marcell@ids.co.za Guest
-
Newbie:Using ASP.NET thread pool thread to dispatch TCP data, etc.
Hi, I've an ASP.NET web service which distributes events to clients via TCP. Environment is IIS6 on Windows 2003 server with .NET framework 1.1... -
Can an iFrame share a System.Threading.Thread.CurrentPrincipal
As per the subject line, I have a sub asp.net app that is being displayed in a parent asp.net app. The sub must respect the roles assigned to the ... -
CurrentPrincipal, WindowsPrincipal
Hello Friend Please check following Cod Dim x As System.Security.Principal.WindowsPrincipa x = System.Threading.Thread.CurrentPrincipa... -
HttpContext.Current.User vs. Thread.CurrentPrincipal
How are HttpConext.Current.User and Thread.CurrentPrincipal different? It seems that they can be set differently in different places. Why would... -
[PHP-DEV] Ifx - Help ! losing my mind, thread by thread
--------------010000080604040703060106 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, Please... -
[MSFT] #2
RE: CurrentPrincipal and new Thread
I think you may consider call WIN API LogonUser in the code to implement
the impersonation. It also can make current thread run at a particular
account. you may refer to following article to see if it will help:
INFO: Implementing Impersonation in an ASP.NET Application
[url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306158[/url]
Luke
[MSFT] Guest
-
Yan-Hong Huang[MSFT] #3
RE: CurrentPrincipal and new Thread
Hello,
How is everything going? If you have any more questions on this issue,
please feel free to post here and we will follow up.
Thanks very much.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ¨C [url]www.microsoft.com/security[/url]
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT] Guest



Reply With Quote

