Professional Documents
Culture Documents
Taming The Beast: How A SQL Dba Can Keep Kerberos Under Control David Postlethwaite
Taming The Beast: How A SQL Dba Can Keep Kerberos Under Control David Postlethwaite
Taming The Beast: How A SQL Dba Can Keep Kerberos Under Control David Postlethwaite
David Postlethwaite
David Postlethwaite
Liverpool Victoria LV=
SQL and Oracle DBA
MCSE 2012 Data Platform
MCITP 2008, 2005
Oracle OCA
25 years IT Experience
6 years as DBA
david@clunyweb.co.uk
Blog: gethynellis.com
Kerberos
What is it?
When do we need it?
How do we configure it?
Who can configure it?
Why does it cause so many issues?
How do we fix it?
Domain Controller
Cluny10
clw-sw-s007
Authentication Process
2 “user1”
1 “user1”
password 3 challenge
4 response
hash 1
SQL Server
Client 5
User1 7
challenge
response
“user1”
hash
6 compare
.
Domain Controller
Why It Fails
2 “user1”
1 “user1”
3 challenge
1
X
Client SQL Server SQL Server 2
.
Domain Controller
http://web.mit.edu/kerberos /
harrypotter.wikia.com
Created by Massachusetts Institute of Technology, USA
Name is based on the three- headed dog figure from Greek mythology
known as Cerberus.
Or possibly Harry Potter
Uses Cryptographic Tickets
More secure and faster than NTLM
Can join Windows to other systems
8 ST
3 7 TGT
1
2 4
TGT ST
TGT + ST
5 9 TGT + ST
6 data SQL Server
10 data
10 data
“user1”
SQL Server 2
.
Client
SETSPN.exe
Setspn.exe -s serviceclass/hostname:portnumber serviceAccountName
Setspn.exe -s MSSQLSvc/MySqlServer:1433 mydomain\sqlservice
View/Advanced Features
Delegation Tab
sys.dm_exec_connections
SELECT
s.session_id, s.original_login_name, c.net_transport, c.auth_scheme,
c.local_net_address, c.local_tcp_port, s.program_name
FROM sys.dm_exec_sessions s
LEFT OUTER JOIN
sys.dm_exec_connections c
ON (s.session_id = c.session_id)
where s.is_user_process = 1
Restart SQL
BE PATIENT !
http://www.microsoft.com/en-gb/download/details.aspx?id=39046
Conclusion
Hopefully you now have a better understanding of Kerberos
And will be able to use it safely in your environment
Q&A
https://www.youtube.com/watch?v=uO9NqxizT_8
david@clunyweb.co.uk
Blog: gethynellis.com
http://clintboessen.blogspot.co.uk/2010/02/dynamically-set-spns-for-sql-service.html