<?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>WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx</link><description>using System; using System.Collections.Generic; using System.Text; using System.Security.Principal; using System.Runtime.InteropServices; using System.Security.Permissions; namespace Test { public class ImpersonateUser { [DllImport("advapi32.dll", SetLastError</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9393859</link><pubDate>Wed, 04 Feb 2009 00:48:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9393859</guid><dc:creator>mettlus shaw</dc:creator><description>&lt;p&gt;works! though how can I accomplish same thing via web.config on IIS7?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9413467</link><pubDate>Thu, 12 Feb 2009 00:19:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9413467</guid><dc:creator>Dylan Baxter</dc:creator><description>&lt;p&gt;A very useful addition to my class library! Thank you!&lt;/p&gt;
</description></item><item><title>Saving and Retrieving File Using FileStream SQL Server 2008</title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9479715</link><pubDate>Sun, 15 Mar 2009 23:08:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9479715</guid><dc:creator>Agha Usman</dc:creator><description>&lt;p&gt;FileStream data type is a very important feature of SQL Server 2008 and gradually getting popular amongst&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9555976</link><pubDate>Mon, 20 Apr 2009 01:35:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9555976</guid><dc:creator>hassan</dc:creator><description>&lt;p&gt;When program was performing,The error is shown:&lt;/p&gt;
&lt;p&gt;Logon failure: unknown user name or bad password.&lt;/p&gt;
&lt;p&gt;please help me&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9686460</link><pubDate>Tue, 02 Jun 2009 21:33:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9686460</guid><dc:creator>Ron Laughton</dc:creator><description>&lt;p&gt;In answer to Mettlus:&lt;/p&gt;
&lt;p&gt;web.config&lt;/p&gt;
&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;system.web&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;identity impersonate=&amp;quot;true&amp;quot; userName=&amp;quot;DOMAIN\USERNAME&amp;quot; password=&amp;quot;PASSWORD&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/configuration&amp;gt;&lt;/p&gt;
&lt;p&gt;However, it may not be wise to let every session have impersonation.&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9808662</link><pubDate>Mon, 29 Jun 2009 18:08:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9808662</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I've been looking for some time for code that will allow me to perform an identity impersonate within a HttpModule and this code did exactly what I needed. Thanks.&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9809462</link><pubDate>Tue, 30 Jun 2009 12:35:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9809462</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Please giuide me the domain name is the Server Machine name or Remote Machine name?&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9901327</link><pubDate>Wed, 30 Sep 2009 17:33:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9901327</guid><dc:creator>Marten vanZwietering</dc:creator><description>&lt;p&gt;I rarely post in these things but I just wanted to let you know I really liked this code - and it did exactly what I needed.&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9914308</link><pubDate>Wed, 28 Oct 2009 20:22:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9914308</guid><dc:creator>Usman</dc:creator><description>&lt;p&gt;Great Code; Works Perfectly. Thank you for that&lt;/p&gt;
</description></item><item><title>re: WindowsIdentity Impersonation using C# Code </title><link>http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx#9916883</link><pubDate>Tue, 03 Nov 2009 18:22:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9916883</guid><dc:creator>Dodge</dc:creator><description>&lt;p&gt;Excellent code, helped me a lot&lt;/p&gt;
</description></item></channel></rss>