{"id":6621,"date":"2012-11-08T09:56:32","date_gmt":"2012-11-08T14:56:32","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=6621"},"modified":"2023-07-12T10:09:31","modified_gmt":"2023-07-12T15:09:31","slug":"kerberos-2","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=6621","title":{"rendered":"Windows 2000 Kerberos Authentication"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Overview\">Overview<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Benefits_of_Kerberos\">Benefits of Kerberos<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Three_Heads_of_Kerberos\">Three Heads of Kerberos<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Key_Distribution_Center:_KDC\">Key Distribution Center: KDC<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Key_Exchanges\">Key Exchanges<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#AS_Exchange\">AS Exchange<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#TGS_Exchange\">TGS Exchange<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#CS_Exchange\">CS Exchange<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Kerberos_in_Active_Directory\">Kerberos in Active Directory<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#TGT\">TGT<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Overview\"><h2>Overview<\/h2><\/span>\n<p>* Kerberos provides authentication <em>and<\/em> crypto over the <strong>network<\/strong>.<\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/krb5_summary.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/krb5_summary-300x231.jpg\" alt=\"\" title=\"krb5_summary\" width=\"300\" height=\"231\" class=\"aligncenter size-medium wp-image-7720\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/krb5_summary-300x231.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/krb5_summary.jpg 491w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Benefits_of_Kerberos\"><h3>Benefits of Kerberos<\/h3><\/span>\n<p>* Faster connections:<br \/>\n&#8211; server does not need to contact domain controller (DC) in order to authenticate clients.<br \/>\n&#8211; clients carries with them session tickets for target servers.<br \/>\n* Mutual authentication:<br \/>\n&#8211; two way authentication between server and client<br \/>\n* Delegated authentication:<br \/>\n&#8211; proxy mechanism that allows a Windows service to impersonate its client when connecting to other services<br \/>\n* Simplified trust management<br \/>\n&#8211; trusts are mutual and transitive<br \/>\n* Interop with non Windows 2000 network resources via on Kerveros 5<\/p>\n<span id=\"Three_Heads_of_Kerberos\"><h3>Three Heads of Kerberos<\/h3><\/span>\n<p>* Key Distribution Center (KDC)<br \/>\n* User Client<br \/>\n* Server resource<\/p>\n<span id=\"Key_Distribution_Center:_KDC\"><h3>Key Distribution Center: KDC<\/h3><\/span>\n<p>* KDC runs on a physically secure server.<br \/>\n* KDC maintains a database with account info for all security principals in its realm aka domain.<br \/>\n* KDC stores a cryptographic key known only to the security principal and the KDC.<br \/>\n&#8211; aka <strong>long-term key<\/strong> which is usually derived from user password, e.g. hash value.<\/p>\n<span id=\"Key_Exchanges\"><h2>Key Exchanges<\/h2><\/span>\n<span id=\"AS_Exchange\"><h3>AS Exchange<\/h3><\/span>\n<p>* AS: Authentication Service<\/p>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/ASExchange.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/ASExchange-260x300.gif\" alt=\"\" title=\"ASExchange\" width=\"260\" height=\"300\" class=\"aligncenter size-medium wp-image-6636\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/ASExchange-260x300.gif 260w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/ASExchange-887x1024.gif 887w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/ASExchange.gif 951w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/><\/a><\/h6><\/span>\n<span id=\"TGS_Exchange\"><h3>TGS Exchange<\/h3><\/span>\n<p>* TGS: Ticket Granting Service<\/p>\n<span id=\"_2\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/TGSExchange.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/TGSExchange-229x300.gif\" alt=\"\" title=\"TGSExchange\" width=\"229\" height=\"300\" class=\"aligncenter size-medium wp-image-6637\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/TGSExchange-229x300.gif 229w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/TGSExchange-784x1024.gif 784w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/TGSExchange.gif 839w\" sizes=\"auto, (max-width: 229px) 100vw, 229px\" \/><\/a><\/h6><\/span>\n<span id=\"CS_Exchange\"><h3>CS Exchange<\/h3><\/span>\n<p>* CS: Client Server<\/p>\n<span id=\"_3\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/CSExchange.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/CSExchange-258x300.gif\" alt=\"\" title=\"CSExchange\" width=\"258\" height=\"300\" class=\"aligncenter size-medium wp-image-6638\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/CSExchange-258x300.gif 258w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/11\/CSExchange.gif 769w\" sizes=\"auto, (max-width: 258px) 100vw, 258px\" \/><\/a><\/h6><\/span>\n<span id=\"Kerberos_in_Active_Directory\"><h2>Kerberos in Active Directory<\/h2><\/span>\n<p>* Integral part of AD 2000 (NTLM only before it)<br \/>\n* Uses Kerberos verion 5<br \/>\n* KDC is part of domain controller and servers as:<br \/>\n&#8211; the Authentication Service (AS)<br \/>\n&#8211; the Ticket Granting Service (TGS)<\/p>\n<span id=\"TGT\"><h3>TGT<\/h3><\/span>\n<p>* TGT is<br \/>\n&#8211; valid for the local domain<br \/>\n&#8211; cached on local machine in volatile memory space<br \/>\n&#8211; used to request sessions with services throughout the network<br \/>\n* TGT contains two sections:<br \/>\n&#8211; a TGT ticket encrypted with a key that <strong>only<\/strong> KDC(TGS) can decrypt<br \/>\n&#8211; a <strong>session key<\/strong> encrypted with user&#8217;s password hash to handle future communications<br \/>\n* TGT includes:<br \/>\n&#8211; TTL which defaults to 8 hrs<br \/>\n&#8211; authorization data<br \/>\n&#8211; session key<\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb742431.aspx\">Windows 2000 Kerberos Authentication<\/a><br \/>\n* <a href=\"http:\/\/web.mit.edu\/kerberos\/\">Kerberos: The Network Authentication Protocol<\/a><br \/>\n* <a href=\"http:\/\/www.mcmcse.com\/microsoft\/guides\/kerberos.shtml\">http:\/\/www.mcmcse.com\/microsoft\/guides\/kerberos.shtml<\/a><br \/>\n* <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb742516.aspx\">Kerberos Explained<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview * Kerberos provides authentication and crypto over the network. Benefits of Kerberos * Faster connections: &#8211; server does not need to contact domain controller (DC) in order to authenticate clients. &#8211; clients carries with them session tickets for target &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=6621\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[287],"tags":[275,628],"class_list":["post-6621","post","type-post","status-publish","format-standard","hentry","category-kerberos","tag-ad","tag-kerberos"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-1IN","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/6621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6621"}],"version-history":[{"count":5,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/6621\/revisions"}],"predecessor-version":[{"id":12936,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/6621\/revisions\/12936"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}