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

Can trusted_connection, use a different user than ASPNET?

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
Nov 18 '05 #1
1 986
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" <an*******@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
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

Nov 18 '05 #2

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

Similar topics

10
by: DC Gringo | last post by:
Using latest SP Win2k and .NET versions, I have a .NET application running on server1 with a SQL Server database running on server2. I have the Windows user account passwords sync'd for...
0
by: Roald Oines | last post by:
I've implemented Doug Steele's code ( http://members.rogers.com/douglas.j.steele/DSNLessLinks.html ) to create a dsn-less connection to a SQL Server database from Access 2003 under XP Pro. I was...
4
by: Ian | last post by:
Can anyone help I have a web server on the internet with and ASP.NET application on it, the application is set to allow Anonymous Access and Integrated Windows. The Web.config is set to use...
2
by: Bruce Whitehouse | last post by:
I need to be able to run the aspnet_wp.exe process under a domain user, rather than the ASPNET user. I've tried changing the impersonation settings in the web.config and machine.config files,...
4
by: Dan Walls | last post by:
Hi, I am deploying an ASP.Net web app into the following scenario: Internet --> Firewall --> WebServer (IIS) --> --> However I am not sure what sort of authentication options are available...
7
by: Spsk | last post by:
How to run EXE in webserver on different user credential other than ASPNET. I'm trying to execute EXE in webserver and its runns under ASPNET NT account but I want to run the EXE in different...
3
by: Kim | last post by:
After installing MSDE2000 on my WIN XP machine, I created the database from Access using the upsizing wizard. Although the tables can be seen from the server explorer, I keep on encountering...
1
by: bindurajeesh | last post by:
I am using the following code and it works when I have aspnet as a bona fide user in the sql server database. Why doesn't the use of trusted connection allow me as logged in user and dbo of...
11
by: =?Utf-8?B?UGF0Qg==?= | last post by:
Is there a way in ASP.NET 2.0 to have different connection strings settings in a web.config files that are dynamically used based upon the server that the web application is running on? For...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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
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...

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.