Ask a Question related to ASP.NET General, Design and Development.
-
Dave #1
Setting up integrated security to SQL Server
Hi,
I've read quite a few places where it recommends you use
integrated security in your connection string to SQL
Server
I tried this in test page to connect to the Northwind
database by setting my connection string to:
"data source=<mymachinename>;initial
catalog=Northwind;integrated security=SSPI;"
It worked as long as I added ASPNET, the account used for
running ASP.NET Worker processes, as a SQL Server Login
with access to Northwind.
My question is shouldn't each web application on the
server have it's own ASPNET-type account so it only has
accesses the databases it needs?
For example, can I setup the following?
ASPNET_Northwind (This account can only access the
Northwind site and the Northwind database)
ASPNET_Pubs ((This account can only access the Pubs site
and the Pubs database)
Otherwise if all sites use the same ASPNET account, they
can make queries to other databases.
how do I do this?
Thanks, Dave.
Dave Guest
-
Integrated security in ASP.net
Hi - I'm developing an Intranet app with ASP.NET/VB.NET and want to use integrated security to access the pages. I don't need the users to log in to... -
Impersonation and integrated security (+sql server reporting servi
Hi, I'm having a little difficulty getting my head round windows integrated security/impersonation and I'd appreciate a little help with the... -
Using Integrated Security for Accessing SQL on Remote Server
Hello, I am currently trying to use integrated security to access the SQL database for the ASP.NET application (deployed on an intranet) I am... -
Integrated Security
Hi I have come across this type of code at many places. New SqlConnection("Data Source=(local);Initial Catalog=XYZ;Integrated Security=SSPI;")... -
ASP.NET & Integrated Security setup?
Hi, I've read quite a few places where it recommends you use integrated security in your connection string. I tried this in test page to... -
S. Justin Gengo #2
Re: Setting up integrated security to SQL Server
Dave,
In IIS you can tell a web site to run using a network username and password.
In Interenet Information Services, right click the web site and open the
properties window for it.
Go to the Directory Security Tab and then click the Edit button in the
Anonymous access and authentication area.
In the Anonymous Access area make sure that Anonymous access is checked.
Please not the text in this area: "Account used for anonymous access:" Click
the Browse button and select the account you would like this web site to run
as.
(You should uncheck the Allow IIS to control password checkbox and provide
the password for the account.)
Now give this account access to the correct SQL database.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Dave" <DavidTabaka@hotmail.com> wrote in message
news:079101c3600f$3ae61900$a301280a@phx.gbl...> Hi,
>
> I've read quite a few places where it recommends you use
> integrated security in your connection string to SQL
> Server
>
> I tried this in test page to connect to the Northwind
> database by setting my connection string to:
>
> "data source=<mymachinename>;initial
> catalog=Northwind;integrated security=SSPI;"
>
> It worked as long as I added ASPNET, the account used for
> running ASP.NET Worker processes, as a SQL Server Login
> with access to Northwind.
>
> My question is shouldn't each web application on the
> server have it's own ASPNET-type account so it only has
> accesses the databases it needs?
>
> For example, can I setup the following?
>
> ASPNET_Northwind (This account can only access the
> Northwind site and the Northwind database)
>
> ASPNET_Pubs ((This account can only access the Pubs site
> and the Pubs database)
>
> Otherwise if all sites use the same ASPNET account, they
> can make queries to other databases.
>
> how do I do this?
>
> Thanks, Dave.
>
S. Justin Gengo Guest



Reply With Quote

