Yes. This is true. Clients capable of Kerberos will attempt to connect via
Kerberos to SQL Server if you're using Windows Authentication.
If the Kerberos attempt fails, the client will use NTLM. We don't log
anything in SQL to tell you that the connection was made via Kerberos or
NTLM.
Yes. Security Delegation is an option to allow credentials to be passed
from one machine to another. This was not possible in an NT 4 domain. The
typical scenario where this is used is a Web Server application that
connects to SQL via Trusted Authentication. The web client is able to
authenticate to IIS via Kerberos, and then make a Kerberos connection to
SQL using the client credentials. The SQL Server has to have the SPN set
by a Domain Admin in order for this to work correctly.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.
Hi Kevin,
1. Does SPN exist for a Windows 2000 server or Windows XP machine in a
Windows NT domain? How about in a Windows 2000 domain without Active
Directory?
2. How to use the setspn.exe to create and list SPN for an instance of SQL
Server (e.g the server instance is PETER\TEST1, domain name is W2KDOMAIN, SQL
Server service is using W2KDOMAIN\PETER to start the service)?
3. Same as #2 except SQL Server service is using local system account to
start the service.
Thanks.
> Yes. This is true. Clients capable of Kerberos will attempt to connect via
> Kerberos to SQL Server if you're using Windows Authentication.
[quoted text clipped - 16 lines]
>
> This posting is provided AS IS with no warranties, and confers no rights.
Kevin McDonnell [MSFT] - 26 Feb 2005 00:25 GMT
Responses inline:
1. Does SPN exist for a Windows 2000 server or Windows XP machine in a
Windows NT domain? How about in a Windows 2000 domain without Active
Directory?
--- Not in a Windows NT domain. SPN's will exist for the hostname for
machine in AD.
SPN's don't exist for SQL unless the service is running under localsystem.
Which is not
recommended. Only the Domain Admin has privleges to add a new SPN for SQL.
Also, you can't add SPN's for a server with Dynamic ports because the port
number is part of the SPN.
The server must be using Static ports.
2. How to use the setspn.exe to create and list SPN for an instance of SQL
Server (e.g the server instance is PETER\TEST1, domain name is W2KDOMAIN,
SQL
Server service is using W2KDOMAIN\PETER to start the service)?
--- Setspn -A MSSQLSvc/VirtualSQLServerNameHere.W2KDOMAIN:PortNumber Peter
See the kb for example.
319723 INF: SQL Server 2000 Kerberos support including SQL Server virtual
http://support.microsoft.com/?id=319723
3. Same as #2 except SQL Server service is using local system account to
start the service.
localsystem is not recommended for Standalone service accounts, nor
Clustered Servers.
It should be a domain account per the following article on Virtual SQL
Server accounts.
239885 How to change service accounts on a SQL virtual server
http://support.microsoft.com/?id=239885
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.
Peter - 28 Feb 2005 01:29 GMT
Hi Kevin,
Thanks for your reply.
Peter
> Responses inline:
>
[quoted text clipped - 40 lines]
>
> This posting is provided AS IS with no warranties, and confers no rights.
Kevin McDonnell [MSFT] - 28 Feb 2005 17:48 GMT
You're welcome
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.