<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>James World : kerberos SharePoint</title><link>http://blogs.msdn.com/james_world/archive/tags/kerberos+SharePoint/default.aspx</link><description>Tags: kerberos SharePoint</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>More Kerberos in SharePoint: The lifetime of a Kerberos ticket</title><link>http://blogs.msdn.com/james_world/archive/2007/08/21/more-kerberos-controlling-the-lifetime-of-the-a-kerberos-ticket.aspx</link><pubDate>Tue, 21 Aug 2007 08:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4490073</guid><dc:creator>James World</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/james_world/comments/4490073.aspx</comments><wfw:commentRss>http://blogs.msdn.com/james_world/commentrss.aspx?PostID=4490073</wfw:commentRss><description>&lt;P&gt;I had a great follow-up question from my last post on &lt;A class="" href="http://blogs.msdn.com/james_world/archive/2007/08/20/essential-guide-to-kerberos-in-sharepoint.aspx" mce_href="http://blogs.msdn.com/james_world/archive/2007/08/20/essential-guide-to-kerberos-in-sharepoint.aspx"&gt;Kerberos in SharePoint&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"We are using Kerberos for our MOSS based server and there is one page which renders a list based on the current user's membership groups. The issue is that once the user is removed from the group, he should not see the list contents. However if the Kerberos token is obtained prior to the removal from the group, the user continues to see the list until the ticket expires. In other words, the ticket has to be purged in order to get the latest changes from AD."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The old adage that for every "yin" there is a "yang" holds true here. The reason why Kerberos performs so much better than NTLM over long-running conversations between a client and server is that NTLM requires the server to ask a DC to validate the client's response to a challenge every time authentication is required, whereas with Kerberos the server &lt;EM&gt;never&lt;/EM&gt; has to contact a DC to validate a client's ticket, which once obtained by a client&amp;nbsp;is valid by default for 10 hours. (This number was chosen as it&amp;nbsp;is slightly longer than&amp;nbsp;a typical&amp;nbsp;working day).&lt;/P&gt;
&lt;P&gt;The trade-off here is that a ticket can't be invalidated by the KDC. Once a client has one, it's good until it's expiry date or until the logon session is terminated (i.e. the client logs off) at which point the ticket cache is cleared. Since group membership information is embedded in a ticket, this means you can't use group membership to quickly grant or deny client access to a resource. With NTLM, group membership information is returned every time the server authenticates the client (although even with NTLM you can run into group membership caching problems if tokens are cached by the server).&lt;/P&gt;
&lt;P&gt;Software&amp;nbsp;solutions&amp;nbsp;sometimes work round this&amp;nbsp;by allowing you to deny access based on a client identity&amp;nbsp;- however this isn't always particularly manageable and isn't an option in SharePoint.&lt;/P&gt;
&lt;P&gt;A more extreme option is to configure the lifetime of a ticket. In Windows this is a policy applied to the whole Kerberos realm (Domain) via group policy. I recommend taking great care changing this setting as it may affect adversely performance in your domain - but it is an option. The specifc location and settings in the GPO are described &lt;A class="" href="http://technet2.microsoft.com/windowsserver/en/library/353f7ad9-b53d-41d0-9867-199f6595a01b1033.mspx#w2k3tr_sepol_accou_set_hpjo" mce_href="http://technet2.microsoft.com/windowsserver/en/library/353f7ad9-b53d-41d0-9867-199f6595a01b1033.mspx#w2k3tr_sepol_accou_set_hpjo"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In general, I rarely come across situations where it is actually a business necessity to immediately deny a client access to a resource. Since Kerberos is an intranet protocol if you have a situation where a security concern arises with a user then you can do a number of things -&amp;nbsp;remote&amp;nbsp;log-off or shut-down their machine, or send a heavies from security round to see them for example!&lt;/P&gt;
&lt;P&gt;If you absolutely need to do this in SharePoint, then granting and removing access to SharePoint based on&amp;nbsp;SharePoint group membership (rather than Windows group membership) is probably your best bet.&lt;/P&gt;
&lt;P&gt;If you want to&amp;nbsp;know more about Kerberos I suggest starting with &lt;A class="" href="http://www.pluralsight.com/wiki/default.aspx/Keith.GuideBook.HomePage" mce_href="http://www.pluralsight.com/wiki/default.aspx/Keith.GuideBook.HomePage"&gt;Keith Brown's guide&lt;/A&gt;&amp;nbsp;items&amp;nbsp;59-62&amp;nbsp;and if that doesn't satiate you then move on to this monster:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://technet2.microsoft.com/windowsserver/en/library/4a1daa3e-b45c-44ea-a0b6-fe8910f92f281033.mspx?mfr=true"&gt;http://technet2.microsoft.com/windowsserver/en/library/4a1daa3e-b45c-44ea-a0b6-fe8910f92f281033.mspx?mfr=true&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Good luck!&lt;/P&gt;
&lt;P mce_keep="true"&gt;James.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4490073" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/james_world/archive/tags/kerberos+SharePoint/default.aspx">kerberos SharePoint</category></item></channel></rss>