<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'runManagedModulesForWebDavRequests'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=runManagedModulesForWebDavRequests&amp;orTags=0</link><description>Search results matching tag 'runManagedModulesForWebDavRequests'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Custom Authentication to membership provider for webdav?</title><link>http://forums.iis.net/p/1152183/1881227.aspx#1881227</link><pubDate>Fri, 03 Oct 2008 22:32:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881227</guid><dc:creator>KeithHutch</dc:creator><cs:applicationKey>iis7_-_publishing-41</cs:applicationKey><description>&lt;p&gt;I need to allow users to be able to mount a webdav share running on IIS 7.0 where each user only sees and has access to their folder.&amp;nbsp; I have done this using windows accounts and it works where user Test1 can only read/write their Test1 folder.&amp;nbsp; Test2 can only read/write Test2, etc.&amp;nbsp; The authoring rules work perfect, life is good.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The problem is I don&amp;#39;t want to use a windows account - Neither Basic or Windows.&amp;nbsp; I would prefer to use the membership provider that is present in my web.config which links to my SQL 2005 database which the rest of my web site uses (forms authentication).&amp;nbsp; The webdav portion will be on it&amp;#39;s own separate website with it&amp;#39;s own separate subdomain and IP.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have quite a few ideas on how to accomplish this but I need help.&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; Use a Custom Membership Provider like this one:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="http://www.codeplex.com/CustomBasicAuth" title="Custom Basic Authentication for IIS" target="_blank"&gt;Custom Basic Authentication for IIS&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This way when a user tries to mount https://webdav.site.com/Test1 they get a prompt and enter their credentials and mount the webdav share.&amp;nbsp; The webdav module running on IIS 7.0 just sees that someone is authenticated and doesn&amp;#39;t care how, only that their authenticated and send them to the folder defined in the authoring rules. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. &amp;nbsp; Use a custom HTTP Module&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.rassoc.com/gregr/weblog/2002/06/26/web-services-security-http-basic-authentication-without-active-directory/" title="HTTP Basic Authentication without Active Directory"&gt;HTTP Basic Authentication without Active Directory &lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;You have a HttpModule that does the authentication ahead of the webdav module.&amp;nbsp; The only problem I see is from reading this post:&lt;/p&gt;&lt;p&gt;&lt;a href="http://forums.iis.net/t/1150148.aspx" title="WebDav and Forms Authorization in IIS7"&gt;WebDav and Forms Authorization in IIS7&lt;/a&gt; &lt;/p&gt;&lt;p&gt;anilr says that webdav module will ignore any code run in App_code or Bin folders unless you set the variable &amp;quot;runManagedModulesForWebDavRequests=true&amp;quot;.&amp;nbsp; The only problem I see with this is I have no idea how to set this variable runManagedModulesForWebDavRequests because there is only 1 google result and it&amp;#39;s the above link!&amp;nbsp; Even MSDN has no results for this flag...&lt;/p&gt;&lt;p&gt;I also read this post where robmcm touches a bit on what needs to happen in the HttpModule but am confused on how to accomplish it without further clarification.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="http://forums.iis.net/t/1148011.aspx" title="Anonymous PUT in WebDAV"&gt;Anonymous PUT in WebDAV&lt;/a&gt;&lt;/p&gt;&lt;p&gt;anilr, if your out there could you please comment on how this can be accomplished?&amp;nbsp; I&amp;#39;m sure Robert McMurray (robmcm) would also know if this is possible or help push me further in the right direction...&lt;/p&gt;&lt;p&gt;Once I figure out how to accomplish this, I will gladly share it with the community as I&amp;#39;m sure others have struggled with this problem. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Cheers,&lt;/p&gt;&lt;p&gt;Keith &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>