Re: Kerberos w/ SQL and WIN2000

From: Jasper Smith (jasper_smith9@hotmail.com)
Date: 04/17/03


From: "Jasper Smith" <jasper_smith9@hotmail.com>
Date: Wed, 16 Apr 2003 23:09:19 +0100


Have a look at
http://support.microsoft.com/default.aspx?scid=kb;en-us;811889

I've recently been doing some work with Kerberos and SQL for
use in Linked server security delegation and had some problems
but found that when I went back to a clean config and started
from scratch with the SPN's everything worked as advertised.
I found the following KB useful in troubleshooting Kerberos issues
in that the logging allowed me to see that the client couldn't resolve
the SPN for the SQL Server which made me go back and edit the
SPN so that it was in the correct format.

http://support.microsoft.com/default.aspx?scid=kb;en-us;262177

This was in a native mode win2000 AD domain but I don't think
that is a requirement. Kerberos is the default for win2000 and
unless you are trying to use delegation I don't think you have to set
anything up for it to use it. Can you confirm that the server is trusted
for delegation and also the SQL Service account and the command
you used to set the SPN for the service account. If you switch on
security auditing for logon in windows if it's not already configured
you'll be able to see if clients are using Kerberos to connect (that was
the problem I had, Kerberos was failing silently and authentication
dropped down to NTLM but since the connection still worked I didn't
pick it up until I enable auditing on the client and saw the Kerberos
errors)

-- 
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"--Charles Johnson" <cjohnson@parmedpharn.com> wrote in message
news:uaSS3kFBDHA.2572@TK2MSFTNGP11.phx.gbl...
> Greetings!!
>
> One of the great selling points Microsoft used in convincing me to move to
> Windows 2000 was that the OS uses a more secure authentication mechanism
> known as Kerberos. Did I hear that wrong?
>
> It appears that in order to use Kerberos, the account running the SQL
> services must be Local system or Domain Admin. Failing that, you need to
> use the SETSPN utility from the resource kit.
>
> Trouble is this: When I added the Service Provider Name using the utility,
> all clients (all 2kPro sp2) could no longer connect, and all received
> "Cannot generate SSPI context" error messages.
>
> NETDIAG shows that everything short of SPN tests are running fine, DNS and
> Domain included. Google shows many many issues with this error, most
> unresolved.
>
> I'm not looking for a definitive solution, but I would like to hear from
> others with similar environments. Are you running Kerberos authentication
or
> NTLM? Did you have to setup the SPN using SETSPN or are you running SQL
> under LA or DA privileges? Do I need to switch my 2k domain for Native to
> get this working?
>
> I appreciate your input!
>
> Thank you
>
> --Charles
>
>


Relevant Pages

  • Re: Delegation: IIS Server setup in typical 3-tier scenario.
    ... doesn't already have an SPN and/or you need to change the existing SPN. ... Kerberos is being used - it just means that an API is used to determine what ... so I'm trying to set up delegation. ... Authenticated using NTLM not Kerberos on the Web Server. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Delegation problems
    ... duplicate SPN so I didn't think that was it, but it seemed like one of the ... When the SQL server was initially setup (by a FORMER ... administrator) he used his account as the service account for SQL ... What I am seeing in is that when a Kerberos TGS-REG is submitted I am ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Delegation problems
    ... What I am seeing in is that when a Kerberos TGS-REG is submitted I am ... The service name in the request is the same as is defined for the SPN ... negotiate NTLM authentication which can't be passed to the SQL Sever. ... What is the SPN you have on the service account? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Delegation through Linked Server Stops working
    ... I would guess it's a Kerberos issue, ... I'd suggest getting the Kerberos Delegation troubleshooting ... I have to restart the SQL 2005 server and it will begin to work again. ...
    (microsoft.public.sqlserver.security)
  • Re: impersonation using kerberos
    ... and then finding out you can enable kerberos event logging.... ... and for the computer account contains ... This error appears on my SQL box ... KDC cannot accommodate requested option. ...
    (microsoft.public.win2000.active_directory)

Quantcast