473,394 Members | 1,752 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,394 software developers and data experts.

Creating new Thread as another user?

Can one create a new thread as another user and then preform commands with
other permissionas or am I stuck with the ASPNET user in the code behind?

/Lars
Nov 19 '05 #1
3 1029
There are a handful of ways to run a thread with a different
principal. The second half of the following article demonstrates a few
of the techniques:
http://support.microsoft.com/kb/306158

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 3 Mar 2005 13:52:53 +0100, "Lars Netzel"
<la*********@NO-SPAM.qlogic.se> wrote:
Can one create a new thread as another user and then preform commands with
other permissionas or am I stuck with the ASPNET user in the code behind?

/Lars


Nov 19 '05 #2
That works for basic things but the Export of Crystal Report files doesn't
seem to be affected by the impersionation. Any ideas why?

/Lars
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:v3********************************@4ax.com...
There are a handful of ways to run a thread with a different
principal. The second half of the following article demonstrates a few
of the techniques:
http://support.microsoft.com/kb/306158

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 3 Mar 2005 13:52:53 +0100, "Lars Netzel"
<la*********@NO-SPAM.qlogic.se> wrote:
Can one create a new thread as another user and then preform commands with
other permissionas or am I stuck with the ASPNET user in the code behind?

/Lars

Nov 19 '05 #3

I'm not intimately familiar with Crystal, but, I know COM can throw
some kinks into the work. Have you tried the aspcompat directive? If
Crystal is using an STA COM object underneath the covers then the
calls will jump to a different thread that is not impersonating.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 4 Mar 2005 09:46:59 +0100, "Lars Netzel"
<la*********@NO-SPAM.qlogic.se> wrote:
That works for basic things but the Export of Crystal Report files doesn't
seem to be affected by the impersionation. Any ideas why?

/Lars
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:v3********************************@4ax.com.. .
There are a handful of ways to run a thread with a different
principal. The second half of the following article demonstrates a few
of the techniques:
http://support.microsoft.com/kb/306158

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 3 Mar 2005 13:52:53 +0100, "Lars Netzel"
<la*********@NO-SPAM.qlogic.se> wrote:
Can one create a new thread as another user and then preform commands with
other permissionas or am I stuck with the ASPNET user in the code behind?

/Lars


Nov 19 '05 #4

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

Similar topics

1
by: Ben | last post by:
Due to problems reading the first thread I started I think I should respond with a new post. I have been only able to read up to the 2nd clarification that I posted. Thanks to all who responded....
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
13
by: LordHog | last post by:
Hello all, I have a little application that needs to poll a device (CAN communications) every 10 to 15 ms otherwise the hardware buffer might overflow when there are message burst on the bus. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.