473,462 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Connecting to SQL Server using Windows Authentication

In my ASP.NET web applications I would like to
use "integrated security=SSPI" instead of supplying a SQL
Server account credentials.

From what I understand there are security policy settings
that need to be setup on the web server to allow for me to
do this, but I'm not 100% sure what they are. I think I
have to allow a remote token (from remote computers) and
Kerberos, and in IIS use Integrated Windows Authentication
(with basic and anonymous turned off).

Anyway, I can't find anything in the security policy
settings that I can look at on my Windows 2000 Pro
development computer that I can play with to see if things
work. Are these things that only server editions have?

So I was wondering if anybody could please send me some
information with how the server(s) (are there any SQL
server configurations that need to setup to allow this to
work?) has to be configured to allow me to use SSPI in my
ASP.NET web applications. A link, some explainations,
anything that might help.

Thanks,
Jeremy
Jul 21 '05 #1
4 1982
You'll need to use the ASP.NET account and make sure the permissions have
been added to the SQL Server.

There are quite a few exapmles in the ADO.NET ng.

HTH,

Bill
"Jeremy" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
In my ASP.NET web applications I would like to
use "integrated security=SSPI" instead of supplying a SQL
Server account credentials.

From what I understand there are security policy settings
that need to be setup on the web server to allow for me to
do this, but I'm not 100% sure what they are. I think I
have to allow a remote token (from remote computers) and
Kerberos, and in IIS use Integrated Windows Authentication
(with basic and anonymous turned off).

Anyway, I can't find anything in the security policy
settings that I can look at on my Windows 2000 Pro
development computer that I can play with to see if things
work. Are these things that only server editions have?

So I was wondering if anybody could please send me some
information with how the server(s) (are there any SQL
server configurations that need to setup to allow this to
work?) has to be configured to allow me to use SSPI in my
ASP.NET web applications. A link, some explainations,
anything that might help.

Thanks,
Jeremy

Jul 21 '05 #2
Thanks for the reply, I'll check out the ADO.NET newsgroup.

So why the ASP.NET account? The whole idea in my
situation is to not be an "anonymous" user accessing the
DB.

Whether you use a "standard" account (ASP.NET, IUSER, SQL
account) you never know who is accessing your Database. I
realize that you loose connection pooling by doing it this
way, but for this situation that's okay.

Jeremy
-----Original Message-----
You'll need to use the ASP.NET account and make sure the permissions havebeen added to the SQL Server.

There are quite a few exapmles in the ADO.NET ng.

HTH,

Bill
"Jeremy" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
In my ASP.NET web applications I would like to
use "integrated security=SSPI" instead of supplying a SQL Server account credentials.

From what I understand there are security policy settings that need to be setup on the web server to allow for me to do this, but I'm not 100% sure what they are. I think I
have to allow a remote token (from remote computers) and
Kerberos, and in IIS use Integrated Windows Authentication (with basic and anonymous turned off).

Anyway, I can't find anything in the security policy
settings that I can look at on my Windows 2000 Pro
development computer that I can play with to see if things work. Are these things that only server editions have?

So I was wondering if anybody could please send me some
information with how the server(s) (are there any SQL
server configurations that need to setup to allow this to work?) has to be configured to allow me to use SSPI in my ASP.NET web applications. A link, some explainations,
anything that might help.

Thanks,
Jeremy

.

Jul 21 '05 #3
B/C on the web, those people aren't all on your domain. Joe Blow might log
in from his home dial-up account..that's not on your domain...so for SSPI to
work, you need to have a machine connect thats' 'trusted' by the Database.
"Jeremy" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Thanks for the reply, I'll check out the ADO.NET newsgroup.

So why the ASP.NET account? The whole idea in my
situation is to not be an "anonymous" user accessing the
DB.

Whether you use a "standard" account (ASP.NET, IUSER, SQL
account) you never know who is accessing your Database. I
realize that you loose connection pooling by doing it this
way, but for this situation that's okay.

Jeremy
-----Original Message-----
You'll need to use the ASP.NET account and make sure the

permissions have
been added to the SQL Server.

There are quite a few exapmles in the ADO.NET ng.

HTH,

Bill
"Jeremy" <an*******@discussions.microsoft.com> wrote in

message
news:00****************************@phx.gbl...
In my ASP.NET web applications I would like to
use "integrated security=SSPI" instead of supplying a SQL Server account credentials.

From what I understand there are security policy settings that need to be setup on the web server to allow for me to do this, but I'm not 100% sure what they are. I think I
have to allow a remote token (from remote computers) and
Kerberos, and in IIS use Integrated Windows Authentication (with basic and anonymous turned off).

Anyway, I can't find anything in the security policy
settings that I can look at on my Windows 2000 Pro
development computer that I can play with to see if things work. Are these things that only server editions have?

So I was wondering if anybody could please send me some
information with how the server(s) (are there any SQL
server configurations that need to setup to allow this to work?) has to be configured to allow me to use SSPI in my ASP.NET web applications. A link, some explainations,
anything that might help.

Thanks,
Jeremy

.

Jul 21 '05 #4
Sorry for not making this clear. All of the users will be
from the same domain. It's an intranet site.

I figured that just the idea in general, about using
Kerberos and Integrated Windows Authentication in IIS
would immediately eliminate any ideas of it being an
internet site.

Like you pointed out, web users at home from a dial up
aren't in the same domain as the web server so Integrated
Window Auth naturally wouldn't work.

I'm sure there have been people who didn't have a good
understanding of how that all works and have asked similar
type questions and needed to be set straight, but
sometimes us developer's need to be given a little bit of
credit for the types of questions we are asking here.

In the future I'll remember to make it clear as crystal
the type of application (intranet, internet, extranet,
OWA) I'm working on when asking questions.

Jeremy

-----Original Message-----
B/C on the web, those people aren't all on your domain. Joe Blow might login from his home dial-up account..that's not on your domain...so for SSPI towork, you need to have a machine connect thats' 'trusted' by the Database."Jeremy" <an*******@discussions.microsoft.com> wrote in messagenews:01****************************@phx.gbl...
Thanks for the reply, I'll check out the ADO.NET newsgroup.
So why the ASP.NET account? The whole idea in my
situation is to not be an "anonymous" user accessing the
DB.

Whether you use a "standard" account (ASP.NET, IUSER, SQL account) you never know who is accessing your Database. I realize that you loose connection pooling by doing it this way, but for this situation that's okay.

Jeremy
>-----Original Message-----
>You'll need to use the ASP.NET account and make sure the
permissions have
>been added to the SQL Server.
>
>There are quite a few exapmles in the ADO.NET ng.
>
>HTH,
>
>Bill
>"Jeremy" <an*******@discussions.microsoft.com> wrote in

message
>news:00****************************@phx.gbl...
>> In my ASP.NET web applications I would like to
>> use "integrated security=SSPI" instead of supplying a

SQL
>> Server account credentials.
>>
>> From what I understand there are security policy

settings
>> that need to be setup on the web server to allow for
me to
>> do this, but I'm not 100% sure what they are. I
think I >> have to allow a remote token (from remote computers) and >> Kerberos, and in IIS use Integrated Windows

Authentication
>> (with basic and anonymous turned off).
>>
>> Anyway, I can't find anything in the security policy
>> settings that I can look at on my Windows 2000 Pro
>> development computer that I can play with to see if

things
>> work. Are these things that only server editions have? >>
>> So I was wondering if anybody could please send me some >> information with how the server(s) (are there any SQL
>> server configurations that need to setup to allow this to
>> work?) has to be configured to allow me to use SSPI
in my
>> ASP.NET web applications. A link, some

explainations, >> anything that might help.
>>
>> Thanks,
>> Jeremy
>
>
>.
>

.

Jul 21 '05 #5

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...
14
by: John Spiegel | last post by:
Hi all, I'm missing something, probably stupid, on connecting to a SQL Server database from an aspx file. I haven't really done much w/ SQL Server and suspect that it's a problem on that side. ...
11
by: Patrick | last post by:
I have an ASP.NET application that connects to a SQL Server database. The SQL Server resides on a seperate development server from the IIS5.1 on Windows XP SP2 on development PCs which host the...
3
by: Chris L | last post by:
Hello, I'm hoping to find out if it is possible to connect within an ASP.NET application to Active Directory with the credentials of the person who accessed the ASP.NET application via IIS,...
1
by: J-T | last post by:
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" /> ...
3
by: GTDriver | last post by:
I'm trying to connect my application with a web service located on my own web server(localhost). I guess when the solution/proect is built it makes a file called 'Web...
4
by: Jeremy | last post by:
In my ASP.NET web applications I would like to use "integrated security=SSPI" instead of supplying a SQL Server account credentials. From what I understand there are security policy settings...
11
by: Bob Stearns | last post by:
I have the subject system set up, and can connect to it with several userids. I can login to it (ssh) with a new userid I created, but when I try to use those credentials to connect to db2, I get...
2
by: brian.newman | last post by:
I've got an app which provides data based on the user who is logged in. So, I need the user data to be on the same db server as the other data. I'm trying to do this using the membership API. ...
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
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
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...
1
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,...
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.