473,396 Members | 1,892 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.

Windows Permissions

Note: even though I start out talking about SQL server, this isn't about SQL
Server

In an app I need to execute a stored procedure in SQL Server. The code is
simple enough, but the connection permissions is the issue. I could use a
SQL account, as in
"server=servername;uid=user;pwd=password;"
but in the stored procedure, active directory is accessed and the sproc
returns some permissions errors. So I figured that I should use NT
authentication as in
"server=servername;integrated security=sspi;database=somedatabase"
This is about the point I get lost. I see in some posts people saying "use
impersonation" etc. as in

<authentication mode="Windows" />
<identity impersonate="true" userName="NT Account Name"
password="accountPassword" />

Will someone explain to me how this is supposed to work. I'm sketchy on
what user account will be used here. Is it the impersonate account? Or a
service account? Or the security account on the web site? Hope this makes
sense. Perhaps all I need is a lesson on the users and accounts.

Eric
Nov 18 '05 #1
3 1012
If so you might consider reading the following:

http://msdn.microsoft.com/msdnmag/issues/02/04/ASPSec/
http://msdn.microsoft.com/msdnmag/is...2/default.aspx

HTHs
Daniel Walzenbach

"Eric Sabine" <mo*****@hyottmail.com> schrieb im Newsbeitrag news:3f***********************@news.twtelecom.net. ..
Note: even though I start out talking about SQL server, this isn't about SQL
Server

In an app I need to execute a stored procedure in SQL Server. The code is
simple enough, but the connection permissions is the issue. I could use a
SQL account, as in
"server=servername;uid=user;pwd=password;"
but in the stored procedure, active directory is accessed and the sproc
returns some permissions errors. So I figured that I should use NT
authentication as in
"server=servername;integrated security=sspi;database=somedatabase"
This is about the point I get lost. I see in some posts people saying "use
impersonation" etc. as in

<authentication mode="Windows" />
<identity impersonate="true" userName="NT Account Name"
password="accountPassword" />

Will someone explain to me how this is supposed to work. I'm sketchy on
what user account will be used here. Is it the impersonate account? Or a
service account? Or the security account on the web site? Hope this makes
sense. Perhaps all I need is a lesson on the users and accounts.

Eric

Nov 18 '05 #2
Thank you Daniel. I read both but they are slightly different than I want because they deal with first authenticating the user. I will repost a changed question under a new thread.

Eric

"Daniel Walzenbach" <da**********************@freudenberg.de> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
If so you might consider reading the following:

http://msdn.microsoft.com/msdnmag/issues/02/04/ASPSec/
http://msdn.microsoft.com/msdnmag/is...2/default.aspx

HTHs
Daniel Walzenbach

"Eric Sabine" <mo*****@hyottmail.com> schrieb im Newsbeitrag news:3f***********************@news.twtelecom.net. ..
Note: even though I start out talking about SQL server, this isn't about SQL
Server

In an app I need to execute a stored procedure in SQL Server. The code is
simple enough, but the connection permissions is the issue. I could use a
SQL account, as in
"server=servername;uid=user;pwd=password;"
but in the stored procedure, active directory is accessed and the sproc
returns some permissions errors. So I figured that I should use NT
authentication as in
"server=servername;integrated security=sspi;database=somedatabase"
This is about the point I get lost. I see in some posts people saying "use
impersonation" etc. as in

<authentication mode="Windows" />
<identity impersonate="true" userName="NT Account Name"
password="accountPassword" />

Will someone explain to me how this is supposed to work. I'm sketchy on
what user account will be used here. Is it the impersonate account? Or a
service account? Or the security account on the web site? Hope this makes
sense. Perhaps all I need is a lesson on the users and accounts.

Eric

Nov 18 '05 #3
Eric, sorry if I have misunderstood your question but afaik the impersonated account will be used. I'll have a look for your new post.

Daniel
"Eric Sabine" <mo*****@hyottmail.com> schrieb im Newsbeitrag news:3f***********************@news.twtelecom.net. ..
Thank you Daniel. I read both but they are slightly different than I want because they deal with first authenticating the user. I will repost a changed question under a new thread.

Eric

"Daniel Walzenbach" <da**********************@freudenberg.de> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
If so you might consider reading the following:

http://msdn.microsoft.com/msdnmag/issues/02/04/ASPSec/
http://msdn.microsoft.com/msdnmag/is...2/default.aspx

HTHs
Daniel Walzenbach

"Eric Sabine" <mo*****@hyottmail.com> schrieb im Newsbeitrag news:3f***********************@news.twtelecom.net. ..
Note: even though I start out talking about SQL server, this isn't about SQL
Server

In an app I need to execute a stored procedure in SQL Server. The code is
simple enough, but the connection permissions is the issue. I could use a
SQL account, as in
"server=servername;uid=user;pwd=password;"
but in the stored procedure, active directory is accessed and the sproc
returns some permissions errors. So I figured that I should use NT
authentication as in
"server=servername;integrated security=sspi;database=somedatabase"
This is about the point I get lost. I see in some posts people saying "use
impersonation" etc. as in

<authentication mode="Windows" />
<identity impersonate="true" userName="NT Account Name"
password="accountPassword" />

Will someone explain to me how this is supposed to work. I'm sketchy on
what user account will be used here. Is it the impersonate account? Or a
service account? Or the security account on the web site? Hope this makes
sense. Perhaps all I need is a lesson on the users and accounts.

Eric

Nov 18 '05 #4

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

Similar topics

7
by: barney | last post by:
I'm trying to write to an existing file under windows XP (home). The files are in 'My Music' which I think may be treated in some special way under XP. The relevant python code is as follows: ...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
4
by: Bala | last post by:
Hi, After installing Win2K3 SP1, ASP.NET pages are not being rendered at all. I get a Access Denied error (BC31019: Unable to write to output file) OR a Page Cannot Be Displayed (PCBD) error...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
9
by: Brian Delahunty | last post by:
I'm having a bit of a weird problem and I've spent the last few hours scouring the web trying to solve this before coming here. Here is the problem: I get 404 errors for all ASP.NET 2.0 content...
3
by: Katie | last post by:
Hi, I need a code versioning system and was considering CVS. I would like some feedback if you are using CVS (wincvs or tortoise etc) and if you are satisfied with it. One thing i havent been...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
2
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would...
0
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
3
by: Matt Lowrance | last post by:
I'm hoping someone can give me a little guidance. I have written a simple Windows Service that goes out and scrapes a few web pages and updates some data in an access database. The service works...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.