473,406 Members | 2,816 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,406 software developers and data experts.

Impersonation & Access to SQL Server

This is what I want to achieve
1) ASP.NET code to be able to pick up the Domain username of the person
viewing the page AND
2) Access to another SQL Server in the same domain to be under a fixed
domain user, using the Microsoft Enterprise Library Data Application Block.

Doesn't
- 1) above require in Web.Config
<authentication mode="Windows" />
<identity impersonate="true"/>
- 2) above require instead
<authentication mode="Windows" />
<identity impersonate="true" userName="MyDomain\FIXEDUserName"
password="apassword"/>

Are there any way around this? My company disallows SQL Authentication.
Nov 19 '05 #1
2 1381
You have a couple of directions you can go with this:

1. If you must use a fixed user, you have a couple of choices:
a) Enterprise Services - declarative setting of user in COM+
b) Setting up a service under a specific account

2. If you can go other routes, there is another way. Set up a Windows group
that has access. Add users that have app access to this group. Force users to
log in (ASP.NET).
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Patrick" wrote:
This is what I want to achieve
1) ASP.NET code to be able to pick up the Domain username of the person
viewing the page AND
2) Access to another SQL Server in the same domain to be under a fixed
domain user, using the Microsoft Enterprise Library Data Application Block.

Doesn't
- 1) above require in Web.Config
<authentication mode="Windows" />
<identity impersonate="true"/>
- 2) above require instead
<authentication mode="Windows" />
<identity impersonate="true" userName="MyDomain\FIXEDUserName"
password="apassword"/>

Are there any way around this? My company disallows SQL Authentication.

Nov 19 '05 #2
number two does what you want, if you turn off anonymous for the site. the
thread will run under the fixed domain account, and identity will be the
users.

if you have iis 6.0, use appdomains instead and leaver out the <identity
impersonate> in the web config (you want to use the pool account).

-- bruce (sqlwork.com)

"Patrick" <qu*******@newsgroup.nospam> wrote in message
news:A6**********************************@microsof t.com...
This is what I want to achieve
1) ASP.NET code to be able to pick up the Domain username of the person
viewing the page AND
2) Access to another SQL Server in the same domain to be under a fixed
domain user, using the Microsoft Enterprise Library Data Application
Block.

Doesn't
- 1) above require in Web.Config
<authentication mode="Windows" />
<identity impersonate="true"/>
- 2) above require instead
<authentication mode="Windows" />
<identity impersonate="true" userName="MyDomain\FIXEDUserName"
password="apassword"/>

Are there any way around this? My company disallows SQL Authentication.

Nov 19 '05 #3

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

Similar topics

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...
1
by: techfuzz | last post by:
I'm posting my problem experience and solution I found here for other ASP.NET developers. I have a web application that uses Forms Authentication with Active Directory to control access. In...
3
by: cjk | last post by:
Issue Our web application requires access to write to a custom event log, yet access is denied. This access is denied because we are using impersonation, and our end-users do not (should not) have...
3
by: Wm. Scott Miller | last post by:
What is the difference between using a username and password in the processmodel section vs using one in impersonation in the machine.config file? What are the advantages of each and what are the...
2
by: Sharon | last post by:
Hi to all. I have two Impersonation problems: 1. When using my app. from a remote computer, the aspx page is unable to get information from Active Directory. I am using Impersonation, and the...
1
by: Eric | last post by:
I setup a intranet application based on windows integrated authentication . windows integrated authentication checked in IIS and anonymous access unchecked. i have used impersonation in...
4
by: David Cablalero | last post by:
I have a windows service which every night checks a SQL Server database for some data and business rules. The application can access different DBs with the same structure, to tell the service which...
3
by: headware | last post by:
We have a web app that is running under Integrated Windows Authentication. It must consume to a web service we are publishing on another server, also running under Integrated Windows...
0
by: Daniel Knöpfel | last post by:
Hello On our asp.net 2.0 website we impersonate every request to the identity of the user logged in. This works this way: 1. user logs in, providing username, password 2. user is authenticated...
5
by: =?Utf-8?B?S2l0dHlIYXdr?= | last post by:
I am in the process of migrating an II6 environment from a single server to a network load balanced system. Thus, I am using a virtual directory on a UNC share to house the dynamic data that the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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
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...

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.