Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Integrated security fails on new server

Reply
Thread Tools

Integrated security fails on new server

 
 
kaborka
Guest
Posts: n/a
 
      08-12-2005
We are migrating from our old intranet server to a new one. My ASP.Net C#
app uses integrated security to connect to a SQL 2000 server located on a
different machine in the same domain. It is working fine on the old server.
The following are in web.config:

<authentication mode="Windows" />
<identity impersonate="true" />

Anonymous access is disabled on the virtual directory. Connection strings
are of the form:
Server=myserver;Database=mydb;Persist Security Info=False;Integrated
Security=SSPI;

On the new intranet server, the asp.net page can connect to the local SQL
Server using integrated security, and I have confirmed it us impersonating
the user correctly. However, when the page tries to connect to a different
SQL Server, I get the exception: "Login failed for user '(null)'. Reason: Not
associated with a trusted SQL Server connection."

Since this asp.net app works fine on our current intranet server (the
webpages are able to connect to SQL Server running on a different machine
using integrated security), there must be a problem with the configuration of
the new server.

I've confirmed that "Integrated Windows Authentication" is the only option
checked on the Authentication Methods dialog of the website properties, and
the web.config is set up correctly. What else should I look for to make the
new server work the same as the old one?
 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      08-12-2005
On Thu, 11 Aug 2005 18:56:02 -0700, "kaborka" <> wrote:

¤ We are migrating from our old intranet server to a new one. My ASP.Net C#
¤ app uses integrated security to connect to a SQL 2000 server located on a
¤ different machine in the same domain. It is working fine on the old server.
¤ The following are in web.config:
¤
¤ <authentication mode="Windows" />
¤ <identity impersonate="true" />
¤
¤ Anonymous access is disabled on the virtual directory. Connection strings
¤ are of the form:
¤ Server=myserver;Database=mydb;Persist Security Info=False;Integrated
¤ Security=SSPI;
¤
¤ On the new intranet server, the asp.net page can connect to the local SQL
¤ Server using integrated security, and I have confirmed it us impersonating
¤ the user correctly. However, when the page tries to connect to a different
¤ SQL Server, I get the exception: "Login failed for user '(null)'. Reason: Not
¤ associated with a trusted SQL Server connection."
¤
¤ Since this asp.net app works fine on our current intranet server (the
¤ webpages are able to connect to SQL Server running on a different machine
¤ using integrated security), there must be a problem with the configuration of
¤ the new server.
¤
¤ I've confirmed that "Integrated Windows Authentication" is the only option
¤ checked on the Authentication Methods dialog of the website properties, and
¤ the web.config is set up correctly. What else should I look for to make the
¤ new server work the same as the old one?

Integrated security with SQL Server and an ASP.NET application implementing impersonation requires
Kerberos in a trusted environment in order to delegate credentials to a remote database server.
Without Kerberos, the integrated windows security authentication w/IIS is performed by NTLM and IIS
never receives credentials to delegate.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
 
kaborka
Guest
Posts: n/a
 
      08-12-2005

Well, I'm embarrassed! I double-checked the connection string used by the
ASP.net app on the old intranet server, and it is using SQL authentication
when it connects to a remote SQL Server. The connection string parameters
are set up in the registry. I had thought it was using integrated security
for both the local and remote SQL connections, but it was only using
integrated security for the local connection. My bad!

Thanks for your reply.

> Integrated security with SQL Server and an ASP.NET application implementing impersonation requires
> Kerberos in a trusted environment in order to delegate credentials to a remote database server.
> Without Kerberos, the integrated windows security authentication w/IIS is performed by NTLM and IIS
> never receives credentials to delegate.
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Integrated Windows authentication fails sporadically IE7 clients jonmundsack@yahoo.com ASP General 9 07-10-2008 04:45 PM
How to set windows integrated security vs2005 built in web server? tomix ASP .Net 1 10-27-2006 07:34 AM
Impersonation and integrated security (+sql server reporting servi Phil Aldis ASP .Net Security 3 08-16-2004 08:45 PM
Using Integrated Security for Accessing SQL on Remote Server eRic ASP .Net Security 6 03-05-2004 02:04 AM
Setting up integrated security to SQL Server Dave ASP .Net 1 08-11-2003 03:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57