Showing posts with label via. Show all posts
Showing posts with label via. Show all posts

Friday, March 30, 2012

Login failed for user NT AUTHORITY\LOCAL SERVICE

I just installed the Issue Tracker using .net 1.1 (on my computer). When I try to log in via the login page, I get:

Login failed for user 'NT AUTHORITY\LOCAL SERVICE'

Here is my stack trace info:

SqlException: Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.]
System.Data.SqlClient.ConnectionPool.CreateConnection() +402
System.Data.SqlClient.ConnectionPool.UserCreateRequest() +151
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +386
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
ASPNET.StarterKit.IssueTracker.DataAccessLayer.SQLDataAccessLayer.ExecuteScalarCmd(SqlCommand sqlCmd) +129
ASPNET.StarterKit.IssueTracker.DataAccessLayer.SQLDataAccessLayer.Authenticate(String username, String password) +184
ASPNET.StarterKit.IssueTracker.BusinessLogicLayer.ITUser.Authenticate(String username, String password) +44
ASPNET.StarterKit.IssueTracker.DesktopDefault.Login(Object s, EventArgs e) +84
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

I have added everyone, asp.net, local service, network service - all full control on the entire folder. Restarted IIS - still can't log in. Please help.

Hi, look at the exception you'll find it is from SQL. So you have to add proper permissions in SQL for the account rather than give control on the folder. Please open SQL Server Management Studio (Enterprise Manager) and go to the SQL instance which you're trying to connect, and explore Security->Logins->right click choose 'New Login'-> choose Windows Authentication and type the Windows account name. Remember to give sufficient permissions to the new added login.|||Thanks for the info. That fixed my issue.|||

What exactly should those permissions be, Read-only, owner, read/write.. what?

Thanks

|||

thelane:

What exactly should those permissions be, Read-only, owner, read/write.. what?

Thanks

The permissions I mean here is permissions in SQL, such as SELECT/INSERT/UPDATE on tables, CREATE DATABASES, EXECUTE stored procedures, and so onSmile You can take a look at this link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_security_94dv.asp

Monday, March 26, 2012

Login failed for user '(null)'.

I'm running SQL 2000, SP3 on a W2K server and am having an issue where
users who are trying to connect to SQL Server via Windows Authenication
are getting a 'Login failed for user '(null)'. error. They have plenty
of permissions on SQL Server so that's not the issue. I've done some
testing and the only way I can get them to connect to SQL Server is if I
add them to the local admin group on the server. Has anyone else ever
seen this?
*** Sent via Developersdex http://www.codecomments.com ***
Hi
Give the domain user permission to log into SQL Server.
Look at "user accounts, described" in BOL Index.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:OZczaqUOFHA.2704@.TK2MSFTNGP15.phx.gbl...
> I'm running SQL 2000, SP3 on a W2K server and am having an issue where
> users who are trying to connect to SQL Server via Windows Authenication
> are getting a 'Login failed for user '(null)'. error. They have plenty
> of permissions on SQL Server so that's not the issue. I've done some
> testing and the only way I can get them to connect to SQL Server is if I
> add them to the local admin group on the server. Has anyone else ever
> seen this?
>
> *** Sent via Developersdex http://www.codecomments.com ***
|||They do have permissions through SQL Server. The problem is that their
domain logins still fail unless I add their login to the local admin
group on the server.
*** Sent via Developersdex http://www.codecomments.com ***
|||No problems with these users logging into the Domain and accessing Domain
resources? Make sure they're not logging into their local machines as
opposed to the Domain (sometimes users forget to change the little drop-down
box on the login screen). Are you using an app that you created or is it an
off-the-shelf prog? If it is a custom app, what's the connection string
look like?
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:eNXw5jVOFHA.3704@.TK2MSFTNGP12.phx.gbl...
> They do have permissions through SQL Server. The problem is that their
> domain logins still fail unless I add their login to the local admin
> group on the server.
>
> *** Sent via Developersdex http://www.codecomments.com ***
|||They're definitely logged into the domain - and just to be sure it
wasn't just an end-user error I had 2 other DBAs on my team try to
connect to the database through query analyzer and they got the same
error message.
The application team has tried connecting through their application and
through query analyzer but cannot connect unless I add them to the local
admin group. We can use that as a temporary work around but I'd like to
figure out what's going on.
Any suggestions?
*** Sent via Developersdex http://www.codecomments.com ***
|||Hi,
What account is SQL Server running under?
I've had issues with authentication if it's running under the local system account.
I don't know how you've set things up, but here is what worked for me.
I create a local group and add the domain users to this group.
I create a logon for the local group and give it the appropriate permissions.
HTH
Dan Artuso, MVP
"Rachael Faber" <rfaber@.alldata.net> wrote in message news:uV%23r8ieOFHA.2356@.TK2MSFTNGP14.phx.gbl...
> They're definitely logged into the domain - and just to be sure it
> wasn't just an end-user error I had 2 other DBAs on my team try to
> connect to the database through query analyzer and they got the same
> error message.
> The application team has tried connecting through their application and
> through query analyzer but cannot connect unless I add them to the local
> admin group. We can use that as a temporary work around but I'd like to
> figure out what's going on.
> Any suggestions?
>
> *** Sent via Developersdex http://www.codecomments.com ***
|||It's running under a domain account.
*** Sent via Developersdex http://www.codecomments.com ***
|||Hi Rachael,
Try to rejoin to domain some of the clients.
Regards,
Daniel
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:OZczaqUOFHA.2704@.TK2MSFTNGP15.phx.gbl...
> I'm running SQL 2000, SP3 on a W2K server and am having an issue where
> users who are trying to connect to SQL Server via Windows Authenication
> are getting a 'Login failed for user '(null)'. error. They have plenty
> of permissions on SQL Server so that's not the issue. I've done some
> testing and the only way I can get them to connect to SQL Server is if I
> add them to the local admin group on the server. Has anyone else ever
> seen this?
>
> *** Sent via Developersdex http://www.codecomments.com ***
|||Hi,
Okay, the only other thing I've seen is I've had to grant access explicitly to the domain group
in the Local Security Policy
In User Rights Assignment:
Allow access to this computer from the network
add the domain group that your users area member of. By default the local Admins group
is a part of this so perhaps that is why it works when you make your users part of that group.
HTH
Dan Artuso, MVP
"Rachael Faber" <rfaber@.alldata.net> wrote in message news:%23ZoVHurOFHA.1732@.TK2MSFTNGP14.phx.gbl...
> It's running under a domain account.
>
> *** Sent via Developersdex http://www.codecomments.com ***
|||That's exactly what the problem was - thank you!!
*** Sent via Developersdex http://www.codecomments.com ***

Login failed for user '(null)'.

I'm running SQL 2000, SP3 on a W2K server and am having an issue where
users who are trying to connect to SQL Server via Windows Authenication
are getting a 'Login failed for user '(null)'. error. They have plenty
of permissions on SQL Server so that's not the issue. I've done some
testing and the only way I can get them to connect to SQL Server is if I
add them to the local admin group on the server. Has anyone else ever
seen this'
*** Sent via Developersdex http://www.developersdex.com ***Hi
Give the domain user permission to log into SQL Server.
Look at "user accounts, described" in BOL Index.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:OZczaqUOFHA.2704@.TK2MSFTNGP15.phx.gbl...
> I'm running SQL 2000, SP3 on a W2K server and am having an issue where
> users who are trying to connect to SQL Server via Windows Authenication
> are getting a 'Login failed for user '(null)'. error. They have plenty
> of permissions on SQL Server so that's not the issue. I've done some
> testing and the only way I can get them to connect to SQL Server is if I
> add them to the local admin group on the server. Has anyone else ever
> seen this'
>
> *** Sent via Developersdex http://www.developersdex.com ***|||Hi Rachael,
Try to rejoin to domain some of the clients.
Regards,
Daniel
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:OZczaqUOFHA.2704@.TK2MSFTNGP15.phx.gbl...
> I'm running SQL 2000, SP3 on a W2K server and am having an issue where
> users who are trying to connect to SQL Server via Windows Authenication
> are getting a 'Login failed for user '(null)'. error. They have plenty
> of permissions on SQL Server so that's not the issue. I've done some
> testing and the only way I can get them to connect to SQL Server is if I
> add them to the local admin group on the server. Has anyone else ever
> seen this'
>
> *** Sent via Developersdex http://www.developersdex.com ***

Login failed for user '(null)'.

I'm running SQL 2000, SP3 on a W2K server and am having an issue where
users who are trying to connect to SQL Server via Windows Authenication
are getting a 'Login failed for user '(null)'. error. They have plenty
of permissions on SQL Server so that's not the issue. I've done some
testing and the only way I can get them to connect to SQL Server is if I
add them to the local admin group on the server. Has anyone else ever
seen this'
*** Sent via Developersdex http://www.codecomments.com ***Hi
Give the domain user permission to log into SQL Server.
Look at "user accounts, described" in BOL Index.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:OZczaqUOFHA.2704@.TK2MSFTNGP15.phx.gbl...
> I'm running SQL 2000, SP3 on a W2K server and am having an issue where
> users who are trying to connect to SQL Server via Windows Authenication
> are getting a 'Login failed for user '(null)'. error. They have plenty
> of permissions on SQL Server so that's not the issue. I've done some
> testing and the only way I can get them to connect to SQL Server is if I
> add them to the local admin group on the server. Has anyone else ever
> seen this'
>
> *** Sent via Developersdex http://www.codecomments.com ***|||They do have permissions through SQL Server. The problem is that their
domain logins still fail unless I add their login to the local admin
group on the server.
*** Sent via Developersdex http://www.codecomments.com ***|||No problems with these users logging into the Domain and accessing Domain
resources? Make sure they're not logging into their local machines as
opposed to the Domain (sometimes users forget to change the little drop-down
box on the login screen). Are you using an app that you created or is it an
off-the-shelf prog? If it is a custom app, what's the connection string
look like?
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:eNXw5jVOFHA.3704@.TK2MSFTNGP12.phx.gbl...
> They do have permissions through SQL Server. The problem is that their
> domain logins still fail unless I add their login to the local admin
> group on the server.
>
> *** Sent via Developersdex http://www.codecomments.com ***|||They're definitely logged into the domain - and just to be sure it
wasn't just an end-user error I had 2 other DBAs on my team try to
connect to the database through query analyzer and they got the same
error message.
The application team has tried connecting through their application and
through query analyzer but cannot connect unless I add them to the local
admin group. We can use that as a temporary work around but I'd like to
figure out what's going on.
Any suggestions'
*** Sent via Developersdex http://www.codecomments.com ***|||Hi,
What account is SQL Server running under?
I've had issues with authentication if it's running under the local system a
ccount.
I don't know how you've set things up, but here is what worked for me.
I create a local group and add the domain users to this group.
I create a logon for the local group and give it the appropriate permissions
.
HTH
--
Dan Artuso, MVP
"Rachael Faber" <rfaber@.alldata.net> wrote in message news:uV%23r8ieOFHA.2356@.TK2MSFTNGP14.p
hx.gbl...
> They're definitely logged into the domain - and just to be sure it
> wasn't just an end-user error I had 2 other DBAs on my team try to
> connect to the database through query analyzer and they got the same
> error message.
> The application team has tried connecting through their application and
> through query analyzer but cannot connect unless I add them to the local
> admin group. We can use that as a temporary work around but I'd like to
> figure out what's going on.
> Any suggestions'
>
> *** Sent via Developersdex http://www.codecomments.com ***|||It's running under a domain account.
*** Sent via Developersdex http://www.codecomments.com ***|||Hi Rachael,
Try to rejoin to domain some of the clients.
Regards,
Daniel
"Rachael Faber" <rfaber@.alldata.net> wrote in message
news:OZczaqUOFHA.2704@.TK2MSFTNGP15.phx.gbl...
> I'm running SQL 2000, SP3 on a W2K server and am having an issue where
> users who are trying to connect to SQL Server via Windows Authenication
> are getting a 'Login failed for user '(null)'. error. They have plenty
> of permissions on SQL Server so that's not the issue. I've done some
> testing and the only way I can get them to connect to SQL Server is if I
> add them to the local admin group on the server. Has anyone else ever
> seen this'
>
> *** Sent via Developersdex http://www.codecomments.com ***|||Hi,
Okay, the only other thing I've seen is I've had to grant access explicitly
to the domain group
in the Local Security Policy
In User Rights Assignment:
Allow access to this computer from the network
add the domain group that your users area member of. By default the local Ad
mins group
is a part of this so perhaps that is why it works when you make your users p
art of that group.
HTH
--
Dan Artuso, MVP
"Rachael Faber" <rfaber@.alldata.net> wrote in message news:%23ZoVHurOFHA.1732@.TK2MSFTNGP14.p
hx.gbl...
> It's running under a domain account.
>
> *** Sent via Developersdex http://www.codecomments.com ***|||That's exactly what the problem was - thank you!!
*** Sent via Developersdex http://www.codecomments.com ***

Friday, March 23, 2012

Login failed for user '(null)'

I have Windows 2000 client that can connect to a Sql 7
server via Db-Library and TCP/IP without problem. However,
this same machine can ONLY connect to a SQL 2000 via DB-
Library using named pipes. If TCP/IP is used the
following messages is returned ......
SQL SERVER MESSAGE 18452, state1, severity 14:What is the SQL 2000 server's security model as compared to SQL 7? Maybe
one is listening for Windows authentication only, and another for mixed?
SQL 2000 SP 3a forces Win authentication if you don't pay attention.
You can run server network utility on the SQL servers from the SQL program
group and compare it to your SQL client network utility's protocols, but I
don't think that'll yield as much info as figuring out the security models.
Heck, you should even turn on auditing (SQL Server properties from
Enterprise Manager | Security) so you can see what is happening in the SQL
error log.
****************************************
***************************
Andy S.
MCSE NT/2000, MCDBA SQL 7/2000
andymcdba1@.NOMORESPAM.yahoo.com
Please remove NOMORESPAM before replying.
Always keep your antivirus and Microsoft software
up to date with the latest definitions and product updates.
Be suspicious of every email attachment, I will never send
or post anything other than the text of a http:// link nor
post the link directly to a file for downloading.
This posting is provided "as is" with no warranties
and confers no rights.
****************************************
***************************
"Julie" <anonymous@.discussions.microsoft.com> wrote in message
news:6d9001c3e67e$626cc870$a601280a@.phx.gbl...
quote:

> I have Windows 2000 client that can connect to a Sql 7
> server via Db-Library and TCP/IP without problem. However,
> this same machine can ONLY connect to a SQL 2000 via DB-
> Library using named pipes. If TCP/IP is used the
> following messages is returned ......
> SQL SERVER MESSAGE 18452, state1, severity 14:
>
|||Both servers are running in a mixed mode and we use NT
authentication the majority of the time. 90% of our
clients are running Windows NT and we did not see this
problem until we started to introduce W2K machines.
quote:

>--Original Message--
>What is the SQL 2000 server's security model as compared

to SQL 7? Maybe
quote:

>one is listening for Windows authentication only, and

another for mixed?
quote:

>SQL 2000 SP 3a forces Win authentication if you don't pay

attention.
quote:

>You can run server network utility on the SQL servers

from the SQL program
quote:

>group and compare it to your SQL client network utility's

protocols, but I
quote:

>don't think that'll yield as much info as figuring out

the security models.
quote:

>Heck, you should even turn on auditing (SQL Server

properties from
quote:

>Enterprise Manager | Security) so you can see what is

happening in the SQL
quote:

>error log.
>--
> ****************************************
******************

*********
quote:

>Andy S.
>MCSE NT/2000, MCDBA SQL 7/2000
>andymcdba1@.NOMORESPAM.yahoo.com
>Please remove NOMORESPAM before replying.
>Always keep your antivirus and Microsoft software
>up to date with the latest definitions and product

updates.
quote:

>Be suspicious of every email attachment, I will never send
>or post anything other than the text of a http:// link nor
>post the link directly to a file for downloading.
>This posting is provided "as is" with no warranties
>and confers no rights.
> ****************************************
******************

*********
quote:

>"Julie" <anonymous@.discussions.microsoft.com> wrote in

message
quote:

>news:6d9001c3e67e$626cc870$a601280a@.phx.gbl...
However,[QUOTE]
>
>.
>
|||Hi Julie,
To make Trusted Connections over TCP requires more effort than with Named
Pipes. The problem may lie with communication to the DC. Make a network
trace from the client when it fails. This will show a 3 way tcp handshake
with both SQL and the DC. Then work with the network team to isolation
issues with this DC. Or it may even be a problem with DNS.
You may also want to try using a utility called netdiag.exe This tool
will flush out common DNS and DC problems.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||I think I've run into the same problem in the past. Are your servers running
on NT4 and are you using trusted connections, i.e. NT authentication? I
could not get a W2K client to connect to an NT4 server using TCP/IP and
trusted connections with DB-Library. I'm pretty sure it worked OK with ODBC
and OLEDB.
I only had the problem with this combination, W2K on the client, NT4 on the
server and NT authentication using DB-Library and TCP/IP. When we upgraded
our servers to W2K the problem went away.
I've seen a few other people run into the same problem, but couldn't get MS
to acknowledge that this was a problem.
HTH,
Mike Kruchten
"Julie" <anonymous@.discussions.microsoft.com> wrote in message
news:6d9001c3e67e$626cc870$a601280a@.phx.gbl...
quote:

> I have Windows 2000 client that can connect to a Sql 7
> server via Db-Library and TCP/IP without problem. However,
> this same machine can ONLY connect to a SQL 2000 via DB-
> Library using named pipes. If TCP/IP is used the
> following messages is returned ......
> SQL SERVER MESSAGE 18452, state1, severity 14:
>
|||Mike,
Thanks for the response, I thought I was going crazy.
We have the same situation here and ODBC does work fine.
Julie

>--Original Message--
>I think I've run into the same problem in the past. Are
your servers running
>on NT4 and are you using trusted connections, i.e. NT
authentication? I
>could not get a W2K client to connect to an NT4 server
using TCP/IP and
>trusted connections with DB-Library. I'm pretty sure it
worked OK with ODBC
>and OLEDB.
>I only had the problem with this combination, W2K on the
client, NT4 on the
>server and NT authentication using DB-Library and TCP/IP.
When we upgraded
>our servers to W2K the problem went away.
>I've seen a few other people run into the same problem,
but couldn't get MS
>to acknowledge that this was a problem.
>HTH,
>Mike Kruchten
>
>"Julie" <anonymous@.discussions.microsoft.com> wrote in
message
>news:6d9001c3e67e$626cc870$a601280a@.phx.gbl...
However,
>
>.
>

Monday, February 20, 2012

Logging on with SA account!

I am attempting to connect to SQL7.0 via the SA account via an ASP page and having the message:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'WRIGHT\IUSR_WRIGHT'.
Any ideas?This is the anonymous login that IIS uses. Right click on default web site under Internet Services Manager. Click on properties -> Directory Security tab -> Click Edit under the Anonymous access-> Click Edit under the Anonymous access -- you will see this user name.|||Thanks very much...

so simple when you know how!!