Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
T-SQL (SS2K5)
»
OPENROWSET Trusted_Connection Login failed...
OPENROWSET Trusted_Connection Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Rate Topic
Display Mode
Topic Options
Author
Message
@STLSQLGuy
@STLSQLGuy
Posted Thursday, November 04, 2010 1:30 PM
SSC Journeyman
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 4:17 PM
Points: 80,
Visits: 203
Have a sql agent job that is trying to loop through a list of servers. I have added the SQL Agent account as a SYSADMIN on each remote Sql Server it's trying to query. Query looks like this.
------------------
SELECT q.*
FROM OPENROWSET('SQLNCLI', 'Server=SQL01;Trusted_Connection=yes;',
'Select.............. ') AS q
------------------
Error Message
Msg 18456, Level 14, State 1, Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Any ideas?
thanks, ERH
Post #1016166
sjimmo
sjimmo
Posted Thursday, November 04, 2010 1:35 PM
SSCrazy
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 6:16 AM
Points: 2,862,
Visits: 2,464
Are all of the server startup services starting up with the same login, and what is the level of permissino for this login. We have over 200 servers talking amongst themselves this way. The startup service is a Domain Admin account and a sysadmin on each of the servers. In this configuration, the only issue we have has is when a DNS issue arises.
Steve Jimmo
Sr DBA
“If we ever forget that we are One Nation Under God, then we will be a Nation gone under." - Ronald Reagan
Post #1016175
GSquared
GSquared
Posted Thursday, November 04, 2010 1:35 PM
SSCoach
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
It's a "too many steps for Windows authentication" problem. (There's a more formal name, but this one's more expressive.)
Natively, Windows can only pass authentication one step, e.g.: client to server, or server to server. It can't pass more than that, e.g.: client to server to another server.
Any time you see that anonymous login error, you're probably looking at this issue.
It can be solved. Look up "kerberos" online. Or use integrated security. Either one works.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #1016176
Jack Corbett
Jack Corbett
Posted Friday, November 05, 2010 7:23 AM
SSChampion
Group: General Forum Members
Last Login: 2 days ago @ 12:22 PM
Points: 10,571,
Visits: 11,871
Agree with Gus. Check out this
article
.
Jack Corbett
Applications Developer
Don't let the good be the enemy of the best. --
Paul Fleming
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #1016525
@STLSQLGuy
@STLSQLGuy
Posted Friday, November 05, 2010 8:03 AM
SSC Journeyman
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 4:17 PM
Points: 80,
Visits: 203
different accounts in the same domain group. the domain group is a sysadmin on each server.
thanks, ERH
Post #1016553
@STLSQLGuy
@STLSQLGuy
Posted Friday, November 05, 2010 8:07 AM
SSC Journeyman
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 4:17 PM
Points: 80,
Visits: 203
Oh no, you said "kerberos".
I was afraid of that when I noticed no authentication was being passed but I was hoping it was something I could do differently in SQL Server to get around it.
Thanks for the feedback guys. Good article. I'll get it figured out.
thanks, ERH
Post #1016558
Jack Corbett
Jack Corbett
Posted Friday, November 05, 2010 8:10 AM
SSChampion
Group: General Forum Members
Last Login: 2 days ago @ 12:22 PM
Points: 10,571,
Visits: 11,871
As Gus said, it is a double-hop or multiple-hop issue which means you need to use Kerberos delegation in order to use trusted authentication with OPENROWSET.
Check out the article I linked to in my first post.
Edit: Oops you posted that you were checking that out while I was posting this. Please disregrad.
Jack Corbett
Applications Developer
Don't let the good be the enemy of the best. --
Paul Fleming
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #1016559
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.