Linked Server Login Error NT AUTHORITY\ANONYMOUS LOGIN, Kerberos

  • Hi All

    Having trouble getting double hop authentication working and cant for the life of me figure out why.

    Created a linked server between 2 servers, both of the servers have the SPN's registered correctly for the MSSQLsvc service.

    If I run a query via the link from the Source server it works fine, if I execute it from my PC then as its double hopping, start getting the Login Failed for user NT AUTHORITY\ANONYMOUS LOGIN.

    Been scratching my head now for best part of 30 mins and cant figure it out.

    Probably something obvious I have missed and might just be a case of a fresh pair of eye but any help would be appreciated.

    Thanks

  • Hi,

    Have you set the Computer Account to be Trusted for delegation? This can be done in AD with the User and Computers console by opening the properties of the Computer Account and going to Delegation tab. There should be the option to select "Trust this computer for delegation to any service (Kerberos only)."

    Mika Sutinen, Senior DBA
    @SQLFinn on Twitter
    Blogging at SQLStarters[/url]

  • Yes, the computer account and the service accounts are set for delegation.

  • This was removed by the editor as SPAM

  • This is not with IIS its with SSMS.

    Open SSMS on my desktop, connect to ServerA, then use linked server on ServerA to talk to ServerB getting the kerberos issue.

    Resolved this anyway, the clients where talking over shared memory which will not work for kerberos, switched to TCP/IP and shared memory and it now works.

  • Check for a duplicate SPN for that server registered to a different account.

    Bob
    -----------------------------------------------------------------------------
    How to post to get the best help[/url]

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply