Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS 6 and Windows Authentication to SQL Server 2000

 
   Database Help (Home) -> Connect RSS
Next:  SELECT-how to get only the last 20 records?  
Author Message
mcollier

External


Since: Feb 21, 2005
Posts: 3



(Msg. 1) Posted: Mon Feb 21, 2005 1:09 pm
Post subject: IIS 6 and Windows Authentication to SQL Server 2000
Archived from groups: microsoft>public>dotnet>framework>aspnet, others (more info?)

I am running a Windows Server 2003 machine as my web server. I would
like to use Windows authentication for connections to my SQL Server
2000 instance on a Windows 2000 server. I've read where mirroring the
ASPNET account and password on the web server and SQL server would
work. However, with IIS 6, ASP.NET runs under the 'NT
AUTHORITY\NETWORK SERVICE' account. Should I change the password of
the 'NT AUTHORITY\NETWORK SERVICE' account to something I know, and
create a mirrored 'NETWORK SERVICE' account on my SQL server? Or,
should I create another user like 'MY_WEB_USER' and mirror that on both
machines?

In short, how do I get Windows authentication to work between a Windows
Server 2003 web server and a Windows 2000 SQL server?

Thanks!

 >> Stay informed about: IIS 6 and Windows Authentication to SQL Server 2000 
Back to top
Login to vote
Cowboy4

External


Since: Aug 31, 2004
Posts: 2



(Msg. 2) Posted: Mon Feb 21, 2005 1:21 pm
Post subject: RE: IIS 6 and Windows Authentication to SQL Server 2000 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you are truly using Windows Authentication, ie a user has an account on
the domain as well as SQL Server, you will do the following:

1. Ensure the user cannot sign in as anonymous
2. Add their account to a group that has SQL rights

You may mean "bastardized windows authentication", meaning SQL Server uses
WIndows Authentication, but you are using anon accounts in IIS. If you go
this route, you are advised to impersonate an account rather than give a
local account rights on another box. One way to easily do this is to place
the assembly in COM+ and declaratively assign a domain account to the
application.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


"mcollier" wrote:

 > I am running a Windows Server 2003 machine as my web server. I would
 > like to use Windows authentication for connections to my SQL Server
 > 2000 instance on a Windows 2000 server. I've read where mirroring the
 > ASPNET account and password on the web server and SQL server would
 > work. However, with IIS 6, ASP.NET runs under the 'NT
 > AUTHORITY\NETWORK SERVICE' account. Should I change the password of
 > the 'NT AUTHORITY\NETWORK SERVICE' account to something I know, and
 > create a mirrored 'NETWORK SERVICE' account on my SQL server? Or,
 > should I create another user like 'MY_WEB_USER' and mirror that on both
 > machines?
 >
 > In short, how do I get Windows authentication to work between a Windows
 > Server 2003 web server and a Windows 2000 SQL server?
 >
 > Thanks!
 >
 >

 >> Stay informed about: IIS 6 and Windows Authentication to SQL Server 2000 
Back to top
Login to vote
Vikram Vamshi

External


Since: Jun 10, 2004
Posts: 7



(Msg. 3) Posted: Mon Feb 21, 2005 6:11 pm
Post subject: Re: IIS 6 and Windows Authentication to SQL Server 2000 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
Are both the servers in the same domain?
If so create a domain user account and switch the identity of the ASP.NET
worker process to this acccount. You can do this by creating a new
application pool in IIS6.

Now configure this acccount as a login for sql server.

Don't forget to add this user to the IIS_WPG group on your Win2K3 machine.

HTH
--
Vikram Vamshi
Eclipsys Corporation
"mcollier" wrote in message

 >I am running a Windows Server 2003 machine as my web server. I would
 > like to use Windows authentication for connections to my SQL Server
 > 2000 instance on a Windows 2000 server. I've read where mirroring the
 > ASPNET account and password on the web server and SQL server would
 > work. However, with IIS 6, ASP.NET runs under the 'NT
 > AUTHORITY\NETWORK SERVICE' account. Should I change the password of
 > the 'NT AUTHORITY\NETWORK SERVICE' account to something I know, and
 > create a mirrored 'NETWORK SERVICE' account on my SQL server? Or,
 > should I create another user like 'MY_WEB_USER' and mirror that on both
 > machines?
 >
 > In short, how do I get Windows authentication to work between a Windows
 > Server 2003 web server and a Windows 2000 SQL server?
 >
 > Thanks!
 >
 >> Stay informed about: IIS 6 and Windows Authentication to SQL Server 2000 
Back to top
Login to vote
mcollier

External


Since: Feb 21, 2005
Posts: 3



(Msg. 4) Posted: Mon Feb 21, 2005 8:09 pm
Post subject: Re: IIS 6 and Windows Authentication to SQL Server 2000 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Both servers are not in the same domain. I've done this before when I
had two Windows 2000 servers. Having one Windows 2003 and one Windows
2000 server seems to be somewhat more confusing.
 >> Stay informed about: IIS 6 and Windows Authentication to SQL Server 2000 
Back to top
Login to vote
Vikram Vamshi

External


Since: Jun 10, 2004
Posts: 7



(Msg. 5) Posted: Tue Feb 22, 2005 1:21 pm
Post subject: Re: IIS 6 and Windows Authentication to SQL Server 2000 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What you did for WIndows 2000 should still work for Win2K3.

Create a user on both the machines with the same username and password.
Then configure the ASP.NET worker process to run under this user account on
win2k3 machine
and configure sql on win2k machine to accept this user as a valid login.

As long as the username/password are same on both the machines this should
work.

hth

--
Vikram Vamshi
Eclipsys Corporation
"mcollier" wrote in message

 > Both servers are not in the same domain. I've done this before when I
 > had two Windows 2000 servers. Having one Windows 2003 and one Windows
 > 2000 server seems to be somewhat more confusing.
 >
 >> Stay informed about: IIS 6 and Windows Authentication to SQL Server 2000 
Back to top
Login to vote
mcollier

External


Since: Feb 21, 2005
Posts: 3



(Msg. 6) Posted: Tue Feb 22, 2005 7:18 pm
Post subject: Re: IIS 6 and Windows Authentication to SQL Server 2000 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok, I think I see where you're going with this. I was thinking I could
use the ASPNET or NETWORK SERVICE account for both servers. But, that
doesn't appear to be the case. What you're saying is that I could
create a user on both servers, for example MY_WEB_USER. Then, set the
ASP.NET worker process to run as this account. I would also need to
give that user the correct permissions (similar to NETWORK SERVICE
probably). Sound about right?
 >> Stay informed about: IIS 6 and Windows Authentication to SQL Server 2000 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Port 1433 Not listening on Windows 2003 server - I am running SQL 2000 on Windows 2003 Server. Right now it is on a stand alone laptop and I keep getting "Connection failed" when I try to telnet to it. Here is all that I know. SQL Server is set to listen on 1433 clidnfg shows it set to...

Cannot use Windows Authentification over VPN - Hi, I'm trying to connect to my SQL Server 2000 over a VPN IPsec. The VPN connects succesfully, I can browse with the Windows Explorer the shared folders of my SQL Server. When I ping the server the servername is resolved, and when I use ping...

Cannot connect to local sql server 2000 from VB.NET on pc .. - Hi I just installed SQL Server 2000 to run locally on a WinXP Pro SP2 PC. When I run the following VB.NET code: Protected Const SQL_CONNECTION_STRING As String = _ "Server=localhost;" & _ "DataBase=Northwind;" &...

Oracle linked Server - Hello, I have a SQL 2003 SP3a on Windows 2003 and am connecting to an Oracle 9i database. I've set up the linked server and necessary permissions and it has been working successfully for months. However occasionally after rebooting the machine I..

automating server registration - I'm forever running around updating\ change client libraries and aliases on developer machines. Has anyone any idea how I could go about automating this eg User logs in to the network and automatically their server aliases are updated\ corrected with...
   Database Help (Home) -> Connect All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]