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

Connecting to DB and other resources outside the domain

J-T
We are using **NTLM** as the authentication type.If I use this in my ASP.NET
application :

<identity impersonate="true" username="MyUser" password="123"/>
<authentication mode="Windows" />

and MyUser is the local account of the box which hosts my web application
,then can I connect to a remote sql server instance which has exactly the
same user name and password defined as ***Sql server authentication* using
the connection string below?

<add key="Main.ConnectionString"
value="Server=db-d;Database=vcad;Min Pool Size=5;Trusted_Connection=True"/>

OR

<add key="Main.ConnectionString" value="Data Source=db-d;Min
Pool Size=5;Initial Catalog=vcad;Integrated Security=SSPI;"/>

Please be advised that MyUser **is not** a domain account.The reason I don;t
want it to be a domain account is that I'd like to gain access from my
ASP.NET application to computers outside of my domain and I'll duplicate
this account in those boxes and give the right NTFS permission.

Thanks a lot



Nov 19 '05 #1
1 1476
On Wed, 13 Jul 2005 14:54:11 -0700, "J-T" <JT@nospam.com> wrote:

¤ We are using **NTLM** as the authentication type.If I use this in my ASP.NET
¤ application :
¤
¤ <identity impersonate="true" username="MyUser" password="123"/>
¤ <authentication mode="Windows" />
¤
¤ and MyUser is the local account of the box which hosts my web application
¤ ,then can I connect to a remote sql server instance which has exactly the
¤ same user name and password defined as ***Sql server authentication* using
¤ the connection string below?
¤
¤ <add key="Main.ConnectionString"
¤ value="Server=db-d;Database=vcad;Min Pool Size=5;Trusted_Connection=True"/>
¤
¤ OR
¤
¤ <add key="Main.ConnectionString" value="Data Source=db-d;Min
¤ Pool Size=5;Initial Catalog=vcad;Integrated Security=SSPI;"/>
¤
¤
¤
¤
¤
¤ Please be advised that MyUser **is not** a domain account.The reason I don;t
¤ want it to be a domain account is that I'd like to gain access from my
¤ ASP.NET application to computers outside of my domain and I'll duplicate
¤ this account in those boxes and give the right NTFS permission.
¤

I don't think this configuration is going to work because IIS will essentially be passing a null
session to SQL Server when attempting to delegate impersonated credentials to the remote server
using integrated security.

See the following documentation (Section: Using integrated Windows authentication at the Web server)

http://msdn.microsoft.com/library/de...SecNetch05.asp
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #2

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

Similar topics

4
by: Dan | last post by:
Hi, I'm planning to develop a small intranet to provide our organization with documents online. I've decided to do this using jsp/servlets using a tomcat server. For an operating system, I...
1
by: CyberDigger | last post by:
I have two computers, client and server. The client is running Windows 2000 Professional and is in a workgroup, say "MyWorkgroup". The server is running Windows Server 2003 Standard Edition and...
14
by: David Tilman | last post by:
I've gone throught the MSDN walkthrough "Creating a Web Application Using Visual C# or Visual Basic". When I run the sample I get "Login failed for user 'dbuser'" at the line with...
1
by: CyberDigger | last post by:
I have two computers, client and server. The client is running Windows 2000 Professional and is in a workgroup, say "MyWorkgroup". The server is running Windows Server 2003 Standard Edition and...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.