473,811 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with ASP.NET Delegation and Impersonation

jm
I promise. I have tried everything I could find.

http://msdn.microsoft.com/library/de...SecNetHT05.asp

(and much more)

I have an asp (not .net) page on a server which is not a domain
controller (2003 server in a 2000 forest). The asp page on the server
hits a database on another server. For whatever reason, I either get
invalid path when I use a DSN or opened exclusively or permission
needed when using the UNC \\... Because the webpages are on a
non-domain controller, this causes problems.

I thought that by using delegation, I could delegate/trust the
computer (which is in the domain, but not a DC), trust the account
using the webpage, and I even trust the IUSR_computer that I created
(since it is not part of the domain; but the page uses integrated
authentication anyway.

I hope this makes sense. I cannot get the ODBC or the UNC to extract
data from the database on the remote server in the same domain.
Thanks for guidance.
Nov 18 '05 #1
1 1155
delegation only works with digest, not integrated security. also for
security, delegation is not enabled by default. also only active directory
accounts can be used.

impersonated accounts or local accounts have no network permissions, which
is why your code fails.

either switch to digest or basic, or supply a domain username and password
in the web.config.

-- bruce (sqlwork.com)


"jm" <jo************ *@yahoo.com> wrote in message
news:c6******** *************** **@posting.goog le.com...
I promise. I have tried everything I could find.

http://msdn.microsoft.com/library/de...us/dnnetsec/ht
ml/SecNetHT05.asp
(and much more)

I have an asp (not .net) page on a server which is not a domain
controller (2003 server in a 2000 forest). The asp page on the server
hits a database on another server. For whatever reason, I either get
invalid path when I use a DSN or opened exclusively or permission
needed when using the UNC \\... Because the webpages are on a
non-domain controller, this causes problems.

I thought that by using delegation, I could delegate/trust the
computer (which is in the domain, but not a DC), trust the account
using the webpage, and I even trust the IUSR_computer that I created
(since it is not part of the domain; but the page uses integrated
authentication anyway.

I hope this makes sense. I cannot get the ODBC or the UNC to extract
data from the database on the remote server in the same domain.
Thanks for guidance.

Nov 18 '05 #2

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

Similar topics

2
1757
by: | last post by:
Hi, I am working on a n-tier app using remoting. I am using the VS 2005 beta 2. My server needs to access a remote resources on behalf on the connected user. I have configured my server like : <channel ref="tcp" secure="true" port="8081" impersonate="true"> and my client: <channel ref="tcp" port="0" secure="true"
4
1418
by: Thomas | last post by:
Hi all! I have an asp.net web application that is configured for dynamic impersonation via web.config (identity impersonate=true). The corresponding virtual directory is protected by integrated windows authentication via IIS. Some pages within my web application access a MS SQL Server database hosted on a separate server. The database connection string is set to use a trusted connection. Now the problem is, that sometimes the user's...
2
2439
by: russell.lane | last post by:
I'm building out a pretty standard n-tier web application. The stack includes application/presentation, biz logic, and data access layers on top of an SQL server back end. We want to use impersonation and delegation to forward the user's Windows login through all layers in the stack. To support this, I'm setting up a set of domain accounts which we use to create SPNs for the various services in the various layers. At this point, I'm...
6
2843
by: Marc Castrechini | last post by:
This is a classic double hop delegation issue, however its the first time we are setting this up so we are doing something incorrectly. If we run through the IDE or using a localhost path on the web server the command succeeds. However, if we use the servername or ip through IIS it fails. For this reason we know we have permissions setup correctly on the file server. Can anyone identify what we could possibly be doing wrong here: ...
3
3498
by: Patrick | last post by:
Hello I have the following scenario - SQL 2005 server (serversql) - Windows 2003 with IIS (serveriis) - Windows 2003 ADS (serverads) I want to connect to an intranet application using NTML with impersonation and delegation. so for this I made the following change in web.config <identity impersonate="true"/>
0
9731
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...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10393
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10405
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
10136
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
9208
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...
0
6893
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();...
1
4342
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
3020
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.