Re: Database Connection - Not Associated With Trusted Connection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm trying to keep track of the machine and network hops involved, but
it sounds like you are facing the dreaded double hop issue trying to
impersonate the user.

If you must carry the client's identity all the way to the database,
you'll need to use delegation. I have pointers here:
http://odetocode.com/blogs/scott/archive/2005/02/24/1053.aspx

If you don't need to client's identity there are easier options
available...

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



On Tue, 4 Oct 2005 16:37:03 -0700, "Mythran"
<kip_potter@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>I have a test server and a development machine. I have SQL Server installed
>on both, the installations are pretty much identical. Both servers are in
>the same domain. When I run my application locally, I can connect to the
>local sql server as well as the sql server on the test server. The IIS
>settings on both the test server and local machine are the same (anon
>disabled, use integrated windows auth). Identity impersonate is on in
>web.config.
>
>When I run the application on the test server, I can connect to the test
>server with the following connection string:
>"server=testing;trusted_connection=yes;". However, when I point it to my
>local machine ("server=mymachine;trusted_connection=yes;") I get the "Login
>failed for user '(null)'. Reason: Not associated with a trusted SQL Server
>connection." error.
>
>Using the same two connection strings on my local machine work fine. The
>only difference I know of is...the test machine is a child domain
>(test.mydomain) while my local machine is under the primary domain
>(mydomain). I can connect to it locally, but it can't seem to pass the
>credentials from the test machine to my local machine...it sees it (can see
>it using SQLBrowseConnect api function) and can connect to it using SQL
>Query Analyzer using windows authentication through Terminal Services, but
>it just doesn't work using ASP.Net :(
>
>Can anyone help?
>
>Thanks,
>Mythran
>
>

.



Relevant Pages

  • Re: VS 2005 and SQL Server 2005 Remote Debugging Issue
    ... We had to have Sql Server run under a certain account on the remote ... An account with the same name needed to be running Visual ... Authentication or Sql Server Authentication) and the local machine ...
    (microsoft.public.vstudio.development)
  • Re: Database Connection - Not Associated With Trusted Connection
    ... >I have a test server and a development machine. ... I have SQL Server ... > server with the following connection string: ... > Using the same two connection strings on my local machine work fine. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: recovering root password, was Help!Help!Help!
    ... > I need to know how to change or eliminate a root password. ... > and eliminated our online site, and all our data we have spent two ... > compalints our from our ISP that our server was trying to agressively ... make another backup of your test server. ...
    (freebsd-questions)
  • Re: SQLConnect
    ... same traffic and the same activity as the production server. ... I have configured the test server to process the same data as the ... The only different here is SQL Server, ...
    (microsoft.public.sqlserver.odbc)
  • Re: Master restore
    ... Stop SQL Server in Test server ... SQL Server shuts down automatically after you restore the master ... > Im creating a test server for an application. ...
    (microsoft.public.sqlserver.server)