Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
SQL
ce
clients
clustering
connect
datamining
datawarehouse
dts
fulltext
jdbcdriver
msde
mseq
newusers
notificationsvcs
odbc
olap
programming
replication
reportingsvcs
security
securitytools
server
setup
sqlxml.viewmapper
tools
xml
  
 
date: Thu, 18 Sep 2008 04:36:01 -0700,    group: microsoft.public.sqlserver.security        back       


Login via Anonymous Authentication via IIS   
Hi

I have an ASP.Net based application, running under IIS6 via Anonymous 
Authentication, using the "IUSR_<Machine Name>" account.

The connection string in the web.config to SQL Server uses windows 
authentication.  

I have the following line in web.config:
<authentication mode="Windows">

I do not have am <Impersonate> setting.

Can anyone please tell me why the application is logging into SQL Server 
using the account NT "Authority\Network Service" (rather than "IUSR_<Machine 
Name>").

Many thanks
date: Thu, 18 Sep 2008 04:36:01 -0700   author:   Geoff_Olding

Re: Login via Anonymous Authentication via IIS   
> Can anyone please tell me why the application is logging into SQL Server
> using the account NT "Authority\Network Service" (rather than 
> "IUSR_<Machine
> Name>").

This is because a local Windows account is recognized only on the local 
machine.  Access to network resources from a local account is done under the 
minimally privileged context of "NT Authority\Network Service" (anonymous). 
Consider using a domain account instead if you need to access network 
resources that require authentication.

-- 
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Geoff_Olding"  wrote in message 
news:8DD8D2D4-0D6A-42E6-9DE8-58D97376D204@microsoft.com...
> Hi
>
> I have an ASP.Net based application, running under IIS6 via Anonymous
> Authentication, using the "IUSR_<Machine Name>" account.
>
> The connection string in the web.config to SQL Server uses windows
> authentication.
>
> I have the following line in web.config:
> <authentication mode="Windows">
>
> I do not have am <Impersonate> setting.
>
> Can anyone please tell me why the application is logging into SQL Server
> using the account NT "Authority\Network Service" (rather than 
> "IUSR_<Machine
> Name>").
>
> Many thanks
date: Thu, 18 Sep 2008 06:47:21 -0500   author:   Dan Guzman

Re: Login via Anonymous Authentication via IIS   
Thanks for your post.

I should have said that IIS and SQL Server are running on the same server 
(i.e. the interaction between IIS and SQL Server doesn't need to go across 
the network).

Is the "NT Authority\Network Services" account still used even in this 
situation?

Regards

Geoff Olding

"Dan Guzman" wrote:

> > Can anyone please tell me why the application is logging into SQL Server
> > using the account NT "Authority\Network Service" (rather than 
> > "IUSR_<Machine
> > Name>").
> 
> This is because a local Windows account is recognized only on the local 
> machine.  Access to network resources from a local account is done under the 
> minimally privileged context of "NT Authority\Network Service" (anonymous). 
> Consider using a domain account instead if you need to access network 
> resources that require authentication.
> 
> -- 
> Hope this helps.
> 
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
> 
> "Geoff_Olding"  wrote in message 
> news:8DD8D2D4-0D6A-42E6-9DE8-58D97376D204@microsoft.com...
> > Hi
> >
> > I have an ASP.Net based application, running under IIS6 via Anonymous
> > Authentication, using the "IUSR_<Machine Name>" account.
> >
> > The connection string in the web.config to SQL Server uses windows
> > authentication.
> >
> > I have the following line in web.config:
> > <authentication mode="Windows">
> >
> > I do not have am <Impersonate> setting.
> >
> > Can anyone please tell me why the application is logging into SQL Server
> > using the account NT "Authority\Network Service" (rather than 
> > "IUSR_<Machine
> > Name>").
> >
> > Many thanks 
> 
>
date: Thu, 18 Sep 2008 06:31:03 -0700   author:   Geoff_Olding

Re: Login via Anonymous Authentication via IIS   
> I should have said that IIS and SQL Server are running on the same server
> (i.e. the interaction between IIS and SQL Server doesn't need to go across
> the network).
>
> Is the "NT Authority\Network Services" account still used even in this
> situation?

Apparently, given the login failed message references that account ;-)

You can grant the access to the local database per article 
http://msdn.microsoft.com/en-us/library/ms998320.aspx


-- 
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Geoff_Olding"  wrote in message 
news:45A73B35-9146-486E-8009-1C8285DC29DA@microsoft.com...
> Thanks for your post.
>
> I should have said that IIS and SQL Server are running on the same server
> (i.e. the interaction between IIS and SQL Server doesn't need to go across
> the network).
>
> Is the "NT Authority\Network Services" account still used even in this
> situation?
>
> Regards
>
> Geoff Olding
>
> "Dan Guzman" wrote:
>
>> > Can anyone please tell me why the application is logging into SQL 
>> > Server
>> > using the account NT "Authority\Network Service" (rather than
>> > "IUSR_<Machine
>> > Name>").
>>
>> This is because a local Windows account is recognized only on the local
>> machine.  Access to network resources from a local account is done under 
>> the
>> minimally privileged context of "NT Authority\Network Service" 
>> (anonymous).
>> Consider using a domain account instead if you need to access network
>> resources that require authentication.
>>
>> -- 
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "Geoff_Olding"  wrote in message
>> news:8DD8D2D4-0D6A-42E6-9DE8-58D97376D204@microsoft.com...
>> > Hi
>> >
>> > I have an ASP.Net based application, running under IIS6 via Anonymous
>> > Authentication, using the "IUSR_<Machine Name>" account.
>> >
>> > The connection string in the web.config to SQL Server uses windows
>> > authentication.
>> >
>> > I have the following line in web.config:
>> > <authentication mode="Windows">
>> >
>> > I do not have am <Impersonate> setting.
>> >
>> > Can anyone please tell me why the application is logging into SQL 
>> > Server
>> > using the account NT "Authority\Network Service" (rather than
>> > "IUSR_<Machine
>> > Name>").
>> >
>> > Many thanks
>>
>>
date: Thu, 18 Sep 2008 19:58:49 -0500   author:   Dan Guzman

Re: Login via Anonymous Authentication via IIS   
Thanks for your help

"Dan Guzman" wrote:

> > I should have said that IIS and SQL Server are running on the same server
> > (i.e. the interaction between IIS and SQL Server doesn't need to go across
> > the network).
> >
> > Is the "NT Authority\Network Services" account still used even in this
> > situation?
> 
> Apparently, given the login failed message references that account ;-)
> 
> You can grant the access to the local database per article 
> http://msdn.microsoft.com/en-us/library/ms998320.aspx
> 
> 
> -- 
> Hope this helps.
> 
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
> 
> "Geoff_Olding"  wrote in message 
> news:45A73B35-9146-486E-8009-1C8285DC29DA@microsoft.com...
> > Thanks for your post.
> >
> > I should have said that IIS and SQL Server are running on the same server
> > (i.e. the interaction between IIS and SQL Server doesn't need to go across
> > the network).
> >
> > Is the "NT Authority\Network Services" account still used even in this
> > situation?
> >
> > Regards
> >
> > Geoff Olding
> >
> > "Dan Guzman" wrote:
> >
> >> > Can anyone please tell me why the application is logging into SQL 
> >> > Server
> >> > using the account NT "Authority\Network Service" (rather than
> >> > "IUSR_<Machine
> >> > Name>").
> >>
> >> This is because a local Windows account is recognized only on the local
> >> machine.  Access to network resources from a local account is done under 
> >> the
> >> minimally privileged context of "NT Authority\Network Service" 
> >> (anonymous).
> >> Consider using a domain account instead if you need to access network
> >> resources that require authentication.
> >>
> >> -- 
> >> Hope this helps.
> >>
> >> Dan Guzman
> >> SQL Server MVP
> >> http://weblogs.sqlteam.com/dang/
> >>
> >> "Geoff_Olding"  wrote in message
> >> news:8DD8D2D4-0D6A-42E6-9DE8-58D97376D204@microsoft.com...
> >> > Hi
> >> >
> >> > I have an ASP.Net based application, running under IIS6 via Anonymous
> >> > Authentication, using the "IUSR_<Machine Name>" account.
> >> >
> >> > The connection string in the web.config to SQL Server uses windows
> >> > authentication.
> >> >
> >> > I have the following line in web.config:
> >> > <authentication mode="Windows">
> >> >
> >> > I do not have am <Impersonate> setting.
> >> >
> >> > Can anyone please tell me why the application is logging into SQL 
> >> > Server
> >> > using the account NT "Authority\Network Service" (rather than
> >> > "IUSR_<Machine
> >> > Name>").
> >> >
> >> > Many thanks
> >>
> >> 
> 
>
date: Fri, 19 Sep 2008 02:33:01 -0700   author:   Geoff_Olding

Re: Login via Anonymous Authentication via IIS   
IIS 6.0 ASP.NET applications run in an IIS 6.0 Application Pool. An 
application pool has an identity (the windows account under which 
credentials the application pool runs). This identity is Network Service by 
default. You can change the indentity using IIS 6.0 administrative console.

"Geoff_Olding"  escribió en el 
mensaje news:B63879C5-78E2-41DA-9E68-E43BA712D2D4@microsoft.com...
> Thanks for your help
>
> "Dan Guzman" wrote:
>
>> > I should have said that IIS and SQL Server are running on the same 
>> > server
>> > (i.e. the interaction between IIS and SQL Server doesn't need to go 
>> > across
>> > the network).
>> >
>> > Is the "NT Authority\Network Services" account still used even in this
>> > situation?
>>
>> Apparently, given the login failed message references that account ;-)
>>
>> You can grant the access to the local database per article
>> http://msdn.microsoft.com/en-us/library/ms998320.aspx
>>
>>
>> -- 
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "Geoff_Olding"  wrote in message
>> news:45A73B35-9146-486E-8009-1C8285DC29DA@microsoft.com...
>> > Thanks for your post.
>> >
>> > I should have said that IIS and SQL Server are running on the same 
>> > server
>> > (i.e. the interaction between IIS and SQL Server doesn't need to go 
>> > across
>> > the network).
>> >
>> > Is the "NT Authority\Network Services" account still used even in this
>> > situation?
>> >
>> > Regards
>> >
>> > Geoff Olding
>> >
>> > "Dan Guzman" wrote:
>> >
>> >> > Can anyone please tell me why the application is logging into SQL
>> >> > Server
>> >> > using the account NT "Authority\Network Service" (rather than
>> >> > "IUSR_<Machine
>> >> > Name>").
>> >>
>> >> This is because a local Windows account is recognized only on the 
>> >> local
>> >> machine.  Access to network resources from a local account is done 
>> >> under
>> >> the
>> >> minimally privileged context of "NT Authority\Network Service"
>> >> (anonymous).
>> >> Consider using a domain account instead if you need to access network
>> >> resources that require authentication.
>> >>
>> >> -- 
>> >> Hope this helps.
>> >>
>> >> Dan Guzman
>> >> SQL Server MVP
>> >> http://weblogs.sqlteam.com/dang/
>> >>
>> >> "Geoff_Olding"  wrote in 
>> >> message
>> >> news:8DD8D2D4-0D6A-42E6-9DE8-58D97376D204@microsoft.com...
>> >> > Hi
>> >> >
>> >> > I have an ASP.Net based application, running under IIS6 via 
>> >> > Anonymous
>> >> > Authentication, using the "IUSR_<Machine Name>" account.
>> >> >
>> >> > The connection string in the web.config to SQL Server uses windows
>> >> > authentication.
>> >> >
>> >> > I have the following line in web.config:
>> >> > <authentication mode="Windows">
>> >> >
>> >> > I do not have am <Impersonate> setting.
>> >> >
>> >> > Can anyone please tell me why the application is logging into SQL
>> >> > Server
>> >> > using the account NT "Authority\Network Service" (rather than
>> >> > "IUSR_<Machine
>> >> > Name>").
>> >> >
>> >> > Many thanks
>> >>
>> >>
>>
>>
date: Wed, 1 Oct 2008 14:50:17 +0200   author:   Jes?s L?pez am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us