Re: Linked Servers - setspn - domain account

From: Mike Mortensen (mmortensen_at_#N#O#S#P#A#Mresolutionhealth.com)
Date: 05/27/03


Date: Tue, 27 May 2003 19:30:40 -0000


Thanks you for your reply! I think my problem is somewhere in kerberos.
 I'll have to turn on the logging. FQDNs are returned with the ping, so
that part is ok.

OH! Now i understand how the setspn stuff is supposed to work! The SPN
is added to the USER, not the SERVER! I use the same user account for
the sql service on both machines, perhaps that is causing some sort of
conflict? Perhaps that kerberos logging will answer my question.

Thanks again!

"Jasper Smith" <jasper_smith9@hotmail.com> wrote in
news:eAVy81rIDHA.2232@TK2MSFTNGP11.phx.gbl:

> It can be a serious PITA and yes the various docs are confusing :-)
> First of all I wouldn't use setspn, I tend to use ADSI Edit
> It's in the 2k support tools on any 2k server CD. However if you
> want to use setspn then the syntax is :
>
> setspn -A MSSQLSvc/SQLNLB02.DOMSQL.COM:1433 NLBSQL02Svc
>
> This is for a server called SQLNLB02 in the domain DOMSQL.COM
> with a SQL Service account of DOMSQL\NLBSQL02Svc
>
> You must also be able from the client to resolve the FQDN of the
> servers involved using ping -a servername i.e. it must return
>
> Pinging SQLNLB02.DOMSQL.COM [xxx.xxx.xxx.xxx]
>
> and not
>
> Pinging SQLNLB02 [xxx.xxx.xxx.xxx]
>
>
> Regardless of what anything else says, you just need to set up SPN's
> for the service accounts of the two SQL Servers involved. e.g.
>
> I have 2 servers and 2 service accounts as below
>
> Server1 : SQLNLB01
> ServiceAccount : NLBSQL01Svc
>
> Server2 : SQLNLB02
> ServiceAccount : NLBSQL02Svc
>
> Using ADSI Edit right click on the NLBSQL01Svc in the Users
> container and choose Properties.In the select a property to view
> listbox choose servicePrincipalName and then add a SPN like so
>
> MSSQLSvc/SQLNLB01.DOMSQL.COM:1433
>
> (where the FQDN of the server is the server that uses the account
> I'm editing as it's SQL Service account). Do the same for the second
> server and you should be up and running.
>
> What I find really useful is enabling Kerberos logging on all the
> computers involved. This will write to the event log and you'll be
> able to see exactly why it's failing. .
>
> To enable Kerberos logging look at
> http://support.microsoft.com/default.aspx?scid=kb;en-us;262177
>
> If you've got AD set up then it's generally a malformed SPN or
> poor name resolution (make sure you can ping -a the server IP
> addresses and get back a FQDN and not just a server name)
>
> This article also has some good stuff about Kerberos and SSPI
> http://support.microsoft.com/default.aspx?scid=kb;en-us;811889
>
> and this one lists some of the kerberos errors you might see
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;230476
>



Relevant Pages

  • Re: 0x7 (KRB_ERR_S_PRINCIPAL_UNKNOWN) "Server not found in Kerberos database"
    ... If you press the button with the paper on the event itself, then you have the complete entry with the important number and source. ... A Kerberos Error Message was received: ... Server Realm: SH.COM ... This is the only server logging these types of Kerberos errors. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Kerberos error when running DCDIAG help please
    ... Sure enough disabled the logging and no more errors. ... system Kerberos event logs. ... "Troubleshooting Kerberos Errors" for Kerberos related troubleshooting ... Server Realm: INT.EPA.VIC.GOV.AU ...
    (microsoft.public.windows.server.active_directory)
  • Re: 0x7 (KRB_ERR_S_PRINCIPAL_UNKNOWN) "Server not found in Kerberos database"
    ... I do not have additional enrtries in the event viewer like 673 or 677. ... logged when a share access is made against a server IP address and no ... Do you have enabled Kerberos event logging? ...
    (microsoft.public.windows.server.active_directory)
  • Re: 0x7 (KRB_ERR_S_PRINCIPAL_UNKNOWN) "Server not found in Kerberos database"
    ... Do you have enabled Kerberos event logging? ... Best regards ... Server Realm: SH.COM ... This is the only server logging these types of Kerberos errors. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Cannot telnet some ports
    ... Some with remote administration feature I believe. ... POP3 Server 110 ... # Network services, Internet style ... kerberos 750/udp kdc # Kerberos udp ...
    (microsoft.public.windows.server.general)