<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nathaniel Engelsen &#187; target principal name is incorrect</title>
	<atom:link href="http://nathanielengelsen.com/tag/target-principal-name-is-incorrect/feed/" rel="self" type="application/rss+xml" />
	<link>http://nathanielengelsen.com</link>
	<description></description>
	<lastBuildDate>Thu, 03 Dec 2009 13:03:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Windows Communication Framework (WCF) &#8212; Eliminating Principals on Endpoints</title>
		<link>http://nathanielengelsen.com/2009/09/windows-communication-framework-wcf-eliminating-principals-on-endpoints/</link>
		<comments>http://nathanielengelsen.com/2009/09/windows-communication-framework-wcf-eliminating-principals-on-endpoints/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 16:08:17 +0000</pubDate>
		<dc:creator>nathaniel engelsen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[call to SSPI failed]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[principals]]></category>
		<category><![CDATA[target principal name is incorrect]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://nathanielengelsen.com/?p=139</guid>
		<description><![CDATA[Learn how to consume your WCF services without dealing with a new Windows principal.]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t need to securitize my WCF services with windows principals at this point &#8212; at this point I tend to want various and sundry types to be able to access them.  To affect this, I need to use a blank identity when I go to consume an endpoint.</p>
<p>From <a href="http://stackoverflow.com/questions/489915/wcf-why-does-passing-in-a-remote-endpoint-fail" title="call to SSPI failed; target principal name is incorrect">stackoverflow.com</a> I saw that you can pass in an blank SpnEndpointIdentity when instantiating your communication layer:</p>
<pre class="brush: csharp; title: ; notranslate">
    using con As new OfferingTap.OfferingTapClient( _
        new ServiceModel.InstanceContext(callback), &quot;NetTcpBinding_IOfferingTap&quot;, _
        new ServiceModel.EndpointAddress(new Uri(&quot;net.tcp://qa1offerings:8190/&quot;), _
        new ServiceModel.SpnEndpointIdentity(&quot;&quot;)))
</pre>
<p>In my config file, however, I just zap it out:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;endpoint address=&quot;net.tcp://localhost:8700/PCFComms/service&quot;
    binding=&quot;netTcpBinding&quot; contract=&quot;PCFCommsGateway.PCFCommsService&quot;
    name=&quot;PCFComms&quot;&gt;
    &lt;identity /&gt;
&lt;/endpoint&gt;
</pre>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;partner=sociable" title="Print"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints&amp;bodytext=Learn%20how%20to%20consume%20your%20WCF%20services%20without%20dealing%20with%20a%20new%20Windows%20principal." title="Digg"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints&amp;notes=Learn%20how%20to%20consume%20your%20WCF%20services%20without%20dealing%20with%20a%20new%20Windows%20principal." title="del.icio.us"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;t=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints" title="Facebook"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints&amp;annotation=Learn%20how%20to%20consume%20your%20WCF%20services%20without%20dealing%20with%20a%20new%20Windows%20principal." title="Google Bookmarks"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints" title="DotNetKicks"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;t=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints" title="HackerNews"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints&amp;source=Nathaniel+Engelsen+&amp;summary=Learn%20how%20to%20consume%20your%20WCF%20services%20without%20dealing%20with%20a%20new%20Windows%20principal." title="LinkedIn"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F&amp;title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints" title="Reddit"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Windows%20Communication%20Framework%20%28WCF%29%20--%20Eliminating%20Principals%20on%20Endpoints&amp;url=http%3A%2F%2Fnathanielengelsen.com%2F2009%2F09%2Fwindows-communication-framework-wcf-eliminating-principals-on-endpoints%2F" title="Slashdot"><img src="http://nathanielengelsen.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://nathanielengelsen.com/2009/09/windows-communication-framework-wcf-eliminating-principals-on-endpoints/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

