PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Can trusted_connection, use a different user than ASPNET?

 
 
=?Utf-8?B?Rmxhdmlv?=
Guest
Posts: n/a
 
      8th Jun 2004
I can't use ASPNET user, is there any way to maipulate the system to connect with a different user on a trusted connection

Falvi


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\) [MVP]
Guest
Posts: n/a
 
      8th Jun 2004
The easiest is to make objects that use Enterprise Services and place the
compiled assembly in Component Services (COM+). Here you can declaratively
assign a user for the component to run under. One caveat. If the assembly
calls other .NET assemblies, you will likely be sticking them in the GAC.

With threads, you have the ability to spawn a thread with proper
permissions. You will have to set up a WindowsIdentity object, assign it to
the property of the WindowsPrincipal object, which is assigned to the
CurrentPrincipal property of the thread you are running data access under.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Flavio" <(E-Mail Removed)> wrote in message
news:E54C3A6E-9DC5-413F-9DF8-(E-Mail Removed)...
> I can't use ASPNET user, is there any way to maipulate the system to

connect with a different user on a trusted connection?
>
> Falvio
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why aspnet instead of logged in user when trusted_connection=yes =?Utf-8?B?YmluZHVyYWplZXNo?= Microsoft ASP .NET 1 4th Apr 2006 06:50 PM
trusted_connection=yes Scott Pendleton Microsoft Windows 2000 Security 1 5th Aug 2004 05:00 PM
Re: ASPNET user and IIS Sorin Sandu Microsoft ASP .NET 0 19th Jun 2004 07:16 AM
When putting Trusted_Connection=false Seb Santacroce Microsoft ADO .NET 1 25th Aug 2003 05:51 PM
copying printers to the IIS user or ASPNET user george d lake Microsoft Windows 2000 Printing 0 17th Jul 2003 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 AM.