473,789 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="tr ue" username="MyUse r" password="123"/>
<authenticati on 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.Conne ctionString"
value="Server=d b-d;Database=vcad ;Min Pool Size=5;Trusted_ Connection=True "/>

OR

<add key="Main.Conne ctionString" value="Data Source=db-d;Min
Pool Size=5;Initial Catalog=vcad;In tegrated 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 1498
On Wed, 13 Jul 2005 14:54:11 -0700, "J-T" <JT@nospam.co m> wrote:

¤ We are using **NTLM** as the authentication type.If I use this in my ASP.NET
¤ application :
¤
¤ <identity impersonate="tr ue" username="MyUse r" password="123"/>
¤ <authenticati on 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.Conne ctionString"
¤ value="Server=d b-d;Database=vcad ;Min Pool Size=5;Trusted_ Connection=True "/>
¤
¤ OR
¤
¤ <add key="Main.Conne ctionString" value="Data Source=db-d;Min
¤ Pool Size=5;Initial Catalog=vcad;In tegrated 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
3766
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 have chosen red hat linux. However, I'd like to keep a small database on a sql server as a datasource. However, this sql server is already part of our organization's windows domain. I suspect I'll need to configure samba so that other terminals...
1
2128
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 is in a domain, say "MyDomain". What I need is to logon to the client as some generic local administrator user and then access resources (e.g. share folder, SQL Server using Windows Authentication, etc.) on the server. Here is what I did: I...
14
3366
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 "SqlDataAdapter1.Fill(dSet)". The SQL server is setup for mixed mode and I have a login in Enterprise Manager for the dbuser account. I've setup a system DSN in ODBC on the client which tested succesfully. In Visual Studio 2003 I've chosen "Preview Data..." for...
1
346
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 is in a domain, say "MyDomain". What I need is to logon to the client as some generic local administrator user and then access resources (e.g. share folder, SQL Server using Windows Authentication, etc.) on the server. Here is what I did: I...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9984
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5418
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.