<?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>The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx</link><description>The double-hop problem will usually only be an issue to those of you who write some sort of web-based code (a web application or web service) that uses impersonation. As a .NET programmer I must confess I did not realise that impersonation was built into</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#1569868</link><pubDate>Thu, 01 Feb 2007 08:24:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1569868</guid><dc:creator>Sushubh</dc:creator><description>&lt;p&gt;dude! the tags are all messed up... u mixed up between spaces and commas. &lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#1575676</link><pubDate>Thu, 01 Feb 2007 23:31:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1575676</guid><dc:creator>Raj</dc:creator><description>&lt;p&gt;..and the thing to keep in mind with Kerberos is that the machine your browser is running on has to obviously be in the same domain as the server otherwise Kerberos will fail and NTLM takes over.&lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#1580206</link><pubDate>Fri, 02 Feb 2007 09:07:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1580206</guid><dc:creator>Arunjeet Singh</dc:creator><description>&lt;p&gt;Agreed. In fact, having multiple domains can lead to a whole host of headaches. In my next article, I intend to discuss just such a situation where I had to implement a security framework in a multiple domain set up. To compound problems, the solution also had to have the capability to downgrade smoothly if some of the domains were NT-based (which is to say uing AD wouldn't be an option at least some of the time).&lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#1953675</link><pubDate>Mon, 26 Mar 2007 21:13:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1953675</guid><dc:creator>Ed</dc:creator><description>&lt;p&gt;You say &amp;quot;Apparently, you can get around the problem and use proper delegation if you set up your network to use Kerberos and set up the web server in question as trusted for delegation.&amp;quot;, but I can't seem to find the option to set the webserver to be trusted for delegation. &amp;nbsp;I have Windows Form app that calls a web service that forwards the request to a .NET remoting server. &amp;nbsp;If I debug the remoting server, the credentials passed are of &amp;quot;NT AUTHORITY\\ANONYMOUS LOGON&amp;quot;. &amp;nbsp;If I move the web service to the same machine as the remoting server it works, if I move the web service to the same machine as the Windows Form app it works. &amp;nbsp;So it seems to have all the symptoms of the &amp;quot;double hop&amp;quot; issue. &amp;nbsp;Also, the Authentication type prior to getting to the remote server is Kerberos.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#4279345</link><pubDate>Tue, 07 Aug 2007 19:36:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4279345</guid><dc:creator>Sanket Bakshi</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;Is your webservice running under Anonymous access?&lt;/p&gt;
&lt;p&gt;The client credentials will not be propogeated over to the next level if the webservice is running anonymous. &lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#8288798</link><pubDate>Mon, 17 Mar 2008 17:07:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8288798</guid><dc:creator>T202</dc:creator><description>&lt;p&gt;I had exactly the same problem, this fixed it:&lt;/p&gt;
&lt;p&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;/p&gt;
&lt;p&gt;				{&lt;/p&gt;
&lt;p&gt;					listService.AllowAutoRedirect = false;&lt;/p&gt;
&lt;p&gt;					listService.PreAuthenticate = true;&lt;/p&gt;
&lt;p&gt;					listService.Credentials = (NetworkCredential)System.Net.CredentialCache.DefaultNetworkCredentials;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#8867387</link><pubDate>Thu, 14 Aug 2008 20:20:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8867387</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;Do you mind explaining the post. Where exactly did you insert this code?&lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#8876619</link><pubDate>Mon, 18 Aug 2008 18:19:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8876619</guid><dc:creator>Jaco</dc:creator><description>&lt;p&gt;Hi Ed. I have not tested this, but to set the webserver to be trusted for delegation, you have to go into the active directory settings of your ActiveDir/DNS server&lt;/p&gt;
&lt;p&gt;See the link below - &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.ehow.com/how_2002207_configure-iis-be-trusted-delegation.html"&gt;http://www.ehow.com/how_2002207_configure-iis-be-trusted-delegation.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: The Double-Hop Problem</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#9185832</link><pubDate>Tue, 09 Dec 2008 02:54:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9185832</guid><dc:creator>Scott </dc:creator><description>&lt;p&gt;I am trying to connect to a password protected Sharepoint list service on Sharepoint server through a web app.&lt;/p&gt;
&lt;p&gt;I tried&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;listService.AllowAutoRedirect = false;&lt;/p&gt;
&lt;p&gt;listService.PreAuthenticate = true;&lt;/p&gt;
&lt;p&gt;listService.Credentials = (NetworkCredential)System.Net.CredentialCache.DefaultNetworkCredentials;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;but without luck. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do I...&lt;/p&gt;
&lt;p&gt;-&amp;gt;Need the website to require Windows Authentication? &lt;/p&gt;
&lt;p&gt; &amp;nbsp;- If I do this and removes anonymous authentication, it appears I need a password to open the site.&lt;/p&gt;
&lt;p&gt;-&amp;gt;Need Impersonation in the web.config file. &amp;nbsp;I do not have an account to impersonate though.&lt;/p&gt;
&lt;p&gt;It works fine on my local box in dev or, if I set up the Net credentials with my domain,user, and password, I can run it through our website. &amp;nbsp;Obviously, I can not leave my user/password hard-coded in there.&lt;/p&gt;
&lt;p&gt;I must be missing something. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>SharePoint + Kerberos</title><link>http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx#9599890</link><pubDate>Sun, 10 May 2009 05:22:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9599890</guid><dc:creator>Confluence: SharePoint Administration Wiki</dc:creator><description>&lt;p&gt;I'm not sure why but Kerberos has the ability to send shivers down SharePoint Consultants spines....&lt;/p&gt;
</description></item></channel></rss>