﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ferret Chere commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>Without meaning to sound like a snot about it, it's mildly reassuring to see that even developers of your skill and experience get flustered by “It Works On My Machine” at times.</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment9</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment9</guid><pubDate>Fri, 17 Jun 2011 01:34:32 GMT</pubDate></item><item><title>Bogdan Cucosel commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>If runnning with impersonation you should check out &lt;a href="http://support.microsoft.com/kb/810572 "&gt;Kerberos Delegation &lt;/a&gt; and like Mike said set the spn accordingly.</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment8</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment8</guid><pubDate>Thu, 16 Jun 2011 12:22:51 GMT</pubDate></item><item><title>Mike Brown commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>You have run into a security limitation in Windows. It's for your own good, if any application was able to wave your kerberos token around willy nilly it'd be easier for a cracker to elevate privileges. This situation only arises when you cross machine boundaries and then cross application boundaries (same machine or not). This is why you don't see the problem locally. 

You want to set a Server Principal Name on the first leg of the trip so that it can do full delegation. This involves running the application under an account and using the setspn command. This article on technet shows the steps http://technet.microsoft.com/en-us/library/cc786828(WS.10).aspx (ignore the fact that it refers to server 2003 it works in 2008 and 08R2 as well).

Hope this helps.</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment7</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment7</guid><pubDate>Wed, 15 Jun 2011 13:09:32 GMT</pubDate></item><item><title>David Tellander commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>Hi, 

this sounds a lot like an issue that turned my hair gray a couple of months ago. In order to pass credentials from server1 to server2 one must use Kerberos authentication, since NTLM does not support delegation of impersonated credentials. 

A couple of links that describe what you'll need to configure if this turns out to be your problem:

http://msdn.microsoft.com/en-us/library/ms998355.aspx
http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment6</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment6</guid><pubDate>Wed, 15 Jun 2011 11:49:23 GMT</pubDate></item><item><title>Ayende Rahien commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>Frank,
Oh yes, I run into that, for sure, but that wasn't the only thing. I cannot figure out the package credentials thingie at all.
Once I work around that, I got the loopback nonsense.</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment5</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment5</guid><pubDate>Tue, 14 Jun 2011 11:50:47 GMT</pubDate></item><item><title>Frank commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>Hi Ayende,

if I am correct you are doing an authenticated web request from a server to itself? It might be that you are affected by the loopback check they added in .NET 3.5 SP1. It has bitten us in the *ss as well.

See this link for the loopback check they added (and a possible fix):
http://msdn.microsoft.com/en-us/library/cc982052(v=vs.90).aspx

This URL has some more fixes:
http://support.microsoft.com/kb/896861
</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment4</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment4</guid><pubDate>Tue, 14 Jun 2011 11:47:43 GMT</pubDate></item><item><title>enslam commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>Have you set identity impersonate="true" in the web.config?</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment3</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment3</guid><pubDate>Tue, 14 Jun 2011 10:17:19 GMT</pubDate></item><item><title>grega_g commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>evil blog engine truncated my example.
So you add apppool as user like this:
iis apppool\\[name of application pool] and click Check Names</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment2</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment2</guid><pubDate>Tue, 14 Jun 2011 10:11:17 GMT</pubDate></item><item><title>grega_g commented on The evil tricks of &amp;ldquo;It Works On My Machine&amp;rdquo;, in reverse</title><description>start-&gt;run-&gt;mmc-&gt;File-&gt;Add/remove snapin -&gt; Certificates-&gt;Select account

Than select  certificate you want to use, right click-&gt;Manage private keys...

Than add App pool of aplication than you want to grant permissions to:
iis AppPool\&lt;name of app pool&gt;



</description><link>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment1</link><guid>http://ayende.com/15361/the-evil-tricks-of-it-works-on-my-machine-in-reverse#comment1</guid><pubDate>Tue, 14 Jun 2011 10:08:49 GMT</pubDate></item></channel></rss>