{"id":453,"date":"2012-07-15T20:00:00","date_gmt":"2012-07-15T20:00:00","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=453"},"modified":"2012-07-16T08:34:05","modified_gmt":"2012-07-16T08:34:05","slug":"kerberos-web-services-and-getting-married","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/","title":{"rendered":"Kerberos, web services and getting married!"},"content":{"rendered":"<p>No, not me\u00e2\u20ac\u00a6 I\u00e2\u20ac\u2122ve been happily married for 19 years.. it\u00e2\u20ac\u2122ll be 20 while I\u00e2\u20ac\u2122m at the SharePoint Conference too, but that\u00e2\u20ac\u2122s another story.. watch this space for more details on that one..<\/p>\n<p>The marriage part in this post is something that has been the bane of SharePoint admins for a long time, and that is how to manage when members of staff get married and change their surnames. How this affects you really depends on how your company handles the event. Do they create a new AD account with the new name, do you keep the old AD account and alias the e-mail box? Or do you rename the AD account to the new surname.<\/p>\n<p>The company that I\u00e2\u20ac\u2122m doing some consulting for at the moment had these problems, but with a twist. They fully understood what needs to happen in SharePoint 2007 when an AD account is changed. They were using a profile import, then the migrate user command.. (I\u00e2\u20ac\u2122m not convinced this step is required.. but I need to test further.) and finally they were making sure that the internal timer job \u00e2\u20ac\u0153Profile Synchronisation\u00e2\u20ac\u009d for the web application was running hourly.<\/p>\n<p>The upshot is, Jane Doe, became Jane Smith across all the sites she was active in, visible in the hidden user list and displaying the correct details in the user menu.<\/p>\n<p>As soon as she clicked through to the LOB system though she received access denied. The Kerberos tickets were valid on her client machine and SharePoint was happy, however the LOB reported invalid login back to the user.<\/p>\n<p>On investigation, we discovered that the LOB was reporting an attempted login by JANE DOE, who didn\u00e2\u20ac\u2122t exist now, therefore it couldn\u00e2\u20ac\u2122t match her account to it\u00e2\u20ac\u2122s list of acceptable users. After a bit of binging around, we came across <a title=\"http:\/\/support.microsoft.com\/kb\/946358\" href=\"http:\/\/support.microsoft.com\/kb\/946358\">http:\/\/support.microsoft.com\/kb\/946358<\/a> which describes the problem nicely.<\/p>\n<p>Disabling the LSA cache achieved what we wanted, however I\u00e2\u20ac\u2122m always loathe to disable caching willy nilly.. after all caching is there for a reason and usually a pretty good one. In this case it prevented the LOB system from placing a call to AD with every transaction, which prevents an awful lot of AD traffic.<\/p>\n<p>We restored the cache and ran another user through the system, changing their name and ensuring that they couldn\u00e2\u20ac\u2122t log in to the new system. After much testing, we discovered that if you run the following 2 lines of powershell, it re-writes the cache entry in the LSA cache, updating it with the correct username. Running this on the Web servers for the LOB system updated the cache properly and the user logged straight in.<\/p>\n<p>This has now been adopted into the clients account name change process.<\/p>\n<pre class=\"csharpcode\">$objuser = new-object system.security.principal.ntaccount &quot;domain\\<span class=\"kwrd\">&lt;<\/span><span class=\"html\">new<\/span> <span class=\"attr\">account<\/span> <span class=\"attr\">name<\/span><span class=\"kwrd\">&gt;<\/span>&quot; \r\n$objuser.translate([system.security.principal.securityidentifier])\r\n<\/pre>\n<p><style type=\"text\/css\">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, \"Courier New\", courier, monospace; background-color: #ffffff; \/*white-space: pre;*\/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } <\/style>\n<p>I hope this proves of use to you.<\/p>\n<p>Paul.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No, not me\u00e2\u20ac\u00a6 I\u00e2\u20ac\u2122ve been happily married for 19 years.. it\u00e2\u20ac\u2122ll be 20 while I\u00e2\u20ac\u2122m at the SharePoint Conference too, but that\u00e2\u20ac\u2122s another story.. watch this space for more details on that one.. The marriage part in this post is something that has been the bane of SharePoint admins for a long time, and that &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/\">Continue reading<\/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,"footnotes":""},"categories":[14,67,16,31,66,38],"tags":[69,177,68],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Kerberos, web services and getting married! - Blog of an overweight SharePoint addict<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kerberos, web services and getting married! - Blog of an overweight SharePoint addict\" \/>\n<meta property=\"og:description\" content=\"No, not me\u00e2\u20ac\u00a6 I\u00e2\u20ac\u2122ve been happily married for 19 years.. it\u00e2\u20ac\u2122ll be 20 while I\u00e2\u20ac\u2122m at the SharePoint Conference too, but that\u00e2\u20ac\u2122s another story.. watch this space for more details on that one.. The marriage part in this post is something that has been the bane of SharePoint admins for a long time, and that &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-15T20:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-07-16T08:34:05+00:00\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/\",\"name\":\"Kerberos, web services and getting married! - Blog of an overweight SharePoint addict\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"datePublished\":\"2012-07-15T20:00:00+00:00\",\"dateModified\":\"2012-07-16T08:34:05+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kerberos, web services and getting married! - Blog of an overweight SharePoint addict","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/","og_locale":"en_US","og_type":"article","og_title":"Kerberos, web services and getting married! - Blog of an overweight SharePoint addict","og_description":"No, not me\u00e2\u20ac\u00a6 I\u00e2\u20ac\u2122ve been happily married for 19 years.. it\u00e2\u20ac\u2122ll be 20 while I\u00e2\u20ac\u2122m at the SharePoint Conference too, but that\u00e2\u20ac\u2122s another story.. watch this space for more details on that one.. The marriage part in this post is something that has been the bane of SharePoint admins for a long time, and that &hellip; Continue reading","og_url":"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2012-07-15T20:00:00+00:00","article_modified_time":"2012-07-16T08:34:05+00:00","author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/","url":"http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/","name":"Kerberos, web services and getting married! - Blog of an overweight SharePoint addict","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"datePublished":"2012-07-15T20:00:00+00:00","dateModified":"2012-07-16T08:34:05+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.myfatblog.co.uk\/index.php\/2012\/07\/kerberos-web-services-and-getting-married\/"]}]},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/453"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=453"}],"version-history":[{"count":1,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/453\/revisions"}],"predecessor-version":[{"id":454,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/453\/revisions\/454"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=453"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}