<?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 'security'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=security&amp;orTags=0</link><description>Search results matching tag 'security'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS7.5 / NTFS best practice</title><link>http://forums.iis.net/p/1163005/1926321.aspx#1926321</link><pubDate>Fri, 27 Nov 2009 02:41:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1926321</guid><dc:creator>northcide</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;Sorry if this has been discussed to death but I can&amp;#39;t seem to find a straight answer.&amp;nbsp; I&amp;#39;m running Windows Server 2008 R2, IIS 7.5 on a non-domain machine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I host several sites, some being classic asp some .net stuff, some static and I&amp;#39;m trying to setup some default standard user permissions for each site.&lt;/p&gt;
&lt;p&gt;I create a new user on the machine for each site for that site&amp;#39;s app pool to run under.&amp;nbsp; My confusion ensues from here.&amp;nbsp; From what I can tell the simple and secure thing to do at this point is to remove this user from the USERS group, and add the created user to the web root dir with modify access.&lt;/p&gt;
&lt;p&gt;Should I by default add the IUSR and/or IIS_IUSRS to the NTFS permissions for the web directory?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In the past I havent really paid much attention to doing anything beyond adding the IUSR/WPG (IIS 6) users to have modify access on the folder - but i&amp;#39;d like to make things right.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks in advance!&lt;/p&gt;</description></item><item><title>Windows 7, IIS 7.5 and the Firewall... General Firewall Questions.</title><link>http://forums.iis.net/p/1162832/1925570.aspx#1925570</link><pubDate>Fri, 20 Nov 2009 11:20:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925570</guid><dc:creator>wil2</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I installed IIS 7.5 on my Windows 7 machine last night for development work.&lt;/p&gt;&lt;p&gt;Basically, I want to run a few sites on different ports - I do not want to have to mess around with hosts files or DNS entries, I simply want to have a few sites active just on localhost and switch between them by port numbers... Then change the home folder when I am done to another project.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Everything works fine locally.&amp;nbsp; I then went from another machine and it did not work. I enabled the &amp;quot;World Wide Web Services (HTTP Traffic-In)&amp;quot; rule under Inbound Rules, and it works without problems for Port 80, however, none of the additional sites work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have created additional rules and that works, however I feel like I have left the machine open as it just doesn&amp;#39;t feel right!&lt;/p&gt;&lt;p&gt;&amp;nbsp; Why is the default rule targeted to port 80 and not the IIS process/service itself?&lt;/p&gt;&lt;p&gt;Why does it have &amp;quot;Apply to all programs and services&amp;quot; and not just the &amp;quot;World Wide Web Publishing Service / W3SVC&amp;quot;?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there a better way of doing this? - I don&amp;#39;t want to have to create a new rule each time I want to enable/disable a site and I do not remember having to do this on XP which was the last time I used IIS on a development machine where I used multiple ports (but I could be wrong).&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Urgent: Can not impersonate for MSutil with ASP.NET</title><link>http://forums.iis.net/p/1162452/1923862.aspx#1923862</link><pubDate>Mon, 09 Nov 2009 08:46:10 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923862</guid><dc:creator>tuantomy</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;I created a website using ASP.NET and imported MSUtil as a reference. MSUtil.Interop&amp;nbsp; was installes into GAC.&lt;/p&gt;
&lt;p&gt;Then I create a code like this:&lt;/p&gt;
&lt;p&gt;LogQueryClassClass logQuery = new LogQueryClassClass();&lt;/p&gt;
&lt;p&gt;COMEventLogInputContextClassClass evtLog = new COMEventLogInputContextClassClass();&lt;/p&gt;
&lt;p&gt;ILogRecordset iLogRecordSet = logQuery.Execute(&amp;quot;SELECT top 10 FROM \\abc\security&amp;quot;, evtLog);&lt;/p&gt;
&lt;p&gt;---------------&lt;/p&gt;
&lt;p&gt;I publish this web application on IIS local, identity of this website is a domain account but this account did not belong to Local Admin Group.&lt;/p&gt;
&lt;p&gt;I rewrite the code using:&lt;/p&gt;
&lt;p&gt;using(Impersonate imp = new Impersonate(&amp;quot;account_A&amp;quot;,&amp;quot;domain&amp;quot;,&amp;quot;pass&amp;quot;))&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;///My code here&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;account_A is a domain account with full rights on that computer and belongs to Local Admin Group.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I still get an error, I mean I could not impersonate my code to admin account when I run the application with non-local admin account as identity.&lt;/p&gt;
&lt;p&gt;Please help me fix that.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Remote and automated IIS 7 management from build server - permissions issue</title><link>http://forums.iis.net/p/1162327/1923341.aspx#1923341</link><pubDate>Wed, 04 Nov 2009 10:21:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923341</guid><dc:creator>wimdows</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve posted the following &lt;a href="http://stackoverflow.com/questions/1672751/remote-and-automated-iis-7-management-from-build-server-permissions-issue"&gt;question on StackOverflow&lt;/a&gt;:&lt;br /&gt;&lt;/p&gt;&lt;div class="post-text"&gt;
                &lt;p&gt;Here&amp;#39;s the scenario:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Win2003 Build Server (CCNET)&lt;/li&gt;&lt;li&gt;IIS7 target deployment server&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;The various MSBuild tasks (Sdc.Tasks, MSBuild Community, MSBuild
Extension Pack) for doing this (creating VDirs, setting AppPool
properties) are not suitable for at least one or more of the following
reasons:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;No support for IIS 7.&lt;/li&gt;&lt;li&gt;No possibility to pass domain username/password to perform the operation.&lt;/li&gt;&lt;li&gt;Microsoft.Web.Management.dll is not available on build server.&lt;/li&gt;&lt;li&gt;&amp;#39;Access Denied&amp;#39; error.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;There are no issues creating Vdirs on IIS 6 - though we&amp;#39;re actually
shelling out to iisvdir.vbs, as using any of the MSBuild task as
described above seem to either not support domain username/password
auth when performing the operation or will simply throw a basic &amp;#39;Access
Denied&amp;#39; message (despite having the appropriate permissions on the IIS
6 metabase).&lt;/p&gt;

&lt;p&gt;Also - bear in mind that the various methods work perfectly on IIS 7
if not specifying a specific domain user/pw as long as the current
authentication context has the correct permissions, but for obvious
reasons we don&amp;#39;t want all of our CCNET build to run in that context.&lt;/p&gt;

&lt;p&gt;I&amp;#39;ve even used psexec.exe to run appcmd.exe on the box remotely,
which also works fine if the current security context has appropriate
permission, but as soon as you specify username/password on psexec, you
get an error message saying &amp;quot;Cannot read configuration file due to
insufficient permissions.&amp;quot; The user specified is a domain account, and
is part of the local Administrators group on the 2008 server.&lt;/p&gt;

&lt;p&gt;Also - I&amp;#39;ve ended up rolling my own RunAs MSBuild task, inheriting
from the Exec task and using programmatic impersonation. I then use
this to call psexec without specifying the username and password in
psexec, but by impersonating when shelling to psexec, but I&amp;#39;m simply
getting an exitcode of 1 - without any more details.&lt;/p&gt;

&lt;p&gt;As you see, I&amp;#39;ve pretty much exhausted all options, or so I reckon.&lt;/p&gt;

&lt;p&gt;If you can think of anything else, or have achieved managing IIS7
remotely, from an automated process on a non IIS7 box (using a specific
non local admin user), please let me know. &lt;br /&gt;&lt;/p&gt;

            &lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Can not create directory with code Help ME!!</title><link>http://forums.iis.net/p/1161993/1921739.aspx#1921739</link><pubDate>Thu, 22 Oct 2009 15:20:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921739</guid><dc:creator>I_Hate_This_Name</dc:creator><cs:applicationKey>general--1</cs:applicationKey><description>&lt;p&gt;Im have a web app being served up from my computer. Im running VB SSL. everything is just dandy:)&amp;nbsp; The only issue Im having is that My code will not write to my File system or create a new directory from a client computer. the code will run just fine on my machine but when its&amp;nbsp;called&amp;nbsp;from an outside machine&amp;nbsp;I get the 404 error message. I know it is a simple secerity issue, somthing to do with authentication. Now there is no log in going on here. The user simply clicks a button and the code behind writes some text to a file.Simple. the following type code will generate the error&lt;/p&gt;
&lt;p&gt;My.Computer.FileSystem.CreateDirectory(&amp;quot;DirName&amp;quot;) or MkDir(&amp;quot;DirName&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Basically The code will not write to my directory without some kind of permmision. How do I give this site the permision it needs.&lt;/p&gt;
&lt;p&gt;If you could help me with this I could not thank you enough.&lt;/p&gt;</description></item><item><title>User Isolation in IIS 7</title><link>http://forums.iis.net/p/1161936/1921511.aspx#1921511</link><pubDate>Wed, 21 Oct 2009 08:39:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921511</guid><dc:creator>AJ Patankar</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>Hi guys

Fairly new to IIS7 and was having a few issues setting up an FTP site.

Have a web server using IIS 7 to host a web site and hoping to set up an FTP server on the same machine. Using IIS7, I&amp;#39;ve got the ftp site stable. Problem I have is we want to use our FTP for customers also. As a result, wanted to set up User Isolation within the FTP Directory.

I know to create users I need the IIS 7 Manager Users applet to configure users but this option does not appear on my IIS. Its an option with Server 2008 but the machine is currently installed on a Vista host. Installing this on a server in our domain isn&amp;#39;t really an option as ideally, we want this machine to be on an alternative subnet from our main network for security. If needs be, I have the option to upgrade to Win 7 if anyone is aware if the option is definitely there with Windows 7?

One thing I noticed with a few sites is there appears to be an option in Windows Server within the &amp;quot;Control Panel &amp;gt; Programs and Features &amp;gt; Turn Windows Features On or Off&amp;quot; which caters for this with Win Server. Is there an option I&amp;#39;m missing within Vista or is this not possible without Win Server 2008?

Any help, pointing in the right direction would be greatly appreciated

Thanks </description></item><item><title>How do I configure IIS 5.1 to generate security events on configuration change</title><link>http://forums.iis.net/p/1161896/1921284.aspx#1921284</link><pubDate>Mon, 19 Oct 2009 22:29:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921284</guid><dc:creator>mimatas</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;This may be a really stupid / simple question, but I&amp;#39;ve spent hours scouring google and bing to no avail.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m deploying a system in a multi-user environment with somewhat restrictive security requirements.&amp;nbsp; As part of this deployment, I will be restricting access to the IIS Manager application (iis.msc) to only an administrators group (using windows file permissions, as that&amp;#39;s currently the only way I know how).&amp;nbsp; However, in addition to that, I would like to have a security event logged to the security event viewer whenever an administrator makes changes to the IIS configuration.&amp;nbsp; In an ideal world, I&amp;#39;d like the event to be as specific as possible with respect to the settings modified... however, I&amp;#39;m willing to settle for just a record of the user that made the change.&lt;/p&gt;&lt;p&gt;I know I can audit read access to iis.msc using the generic windows file auditing, which will tell me whenever an admin tries to run iis.msc, but doesn&amp;#39;t tell me whether or not something was changed.&amp;nbsp; Is there a way to audit changes to IIS configurations (specifically, to directory security settings)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;If it helps, I&amp;#39;m using IIS 5.1 on XP, though this will likely be deployed on a 2003 machine, as well as possible deployments using IIS 6 or 7 (still TBD) on server 2008.&lt;/p&gt;&lt;p&gt;Thanks in advance for the help,&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mim &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Two Factor Authentication </title><link>http://forums.iis.net/p/1161814/1920969.aspx#1920969</link><pubDate>Fri, 16 Oct 2009 08:57:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920969</guid><dc:creator>neildt</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;Can anyone recommend any good products for two factor authentication for our IIS7 webserver.&amp;nbsp; Basically we require (for PCI compliance) two factor authenication for Remote Desktop and FTP access into our server.&amp;nbsp; I&amp;#39;ve looked at a company called &amp;quot;phonefactor&amp;quot; which worked great for Remote Desktop - but doesn&amp;#39;t support FTP.&lt;/p&gt;
&lt;p&gt;Any help would be grateful.&lt;/p&gt;
&lt;p&gt;Cheers,Neil&lt;/p&gt;</description></item><item><title>Re: Mixed Authentication: Windows OR Anonymous based on origin</title><link>http://forums.iis.net/p/1152536/1918824.aspx#1918824</link><pubDate>Tue, 29 Sep 2009 17:50:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918824</guid><dc:creator>bcdt</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve had a look at that website and it seems to be a way to enforce &lt;b&gt;both &lt;/b&gt;Integrated Windows Authentication &lt;b&gt;and &lt;/b&gt;Forms Based Authentication one after the other in order to authenticate.&lt;/p&gt;&lt;p&gt;Can that technique be modified to use only 1 kind of authentication either windows or forms based on the user&amp;#39;s location?&amp;nbsp; If&amp;nbsp; they are internal intranet users and have already authenticated against AD  we direct them to an int. windows auth. page; if&amp;nbsp; they are external users they are directed to a forms login page?&amp;nbsp; So only external users have to login, internal users navigate directly to the site.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This can be achieved in IIS6 easily enough based on the IP range check.&lt;/p&gt;&lt;p&gt;In IIS7 would you have to create a custom HTTPModule like Mike has done?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Certificate button not present on the Access tab of the default SMTP Virtual Server</title><link>http://forums.iis.net/p/1155280/1918369.aspx#1918369</link><pubDate>Fri, 25 Sep 2009 19:44:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918369</guid><dc:creator>serverintellect_BM</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;When the IIS6 SMTP Server module looks for a certificate to use for TLS encryption, it seems checks the &amp;#39;Local_Machine\my&amp;#39; store. I&amp;#39;m not sure where the OpenSSL certificate was placed by the system, but if it&amp;#39;s not in the Personal certificates section, then the SMTP server won&amp;#39;t be able to find it, and will therefore provide the error listed here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you have IIS7 installed on this server, the easiest way to go about securing this would be to select the &amp;#39;Server&amp;#39; node in the IIS7 manager, select &amp;#39;Certificates&amp;#39;, and &amp;#39;Create a self-signed certificate...&amp;#39; This will place a copy of the certificate in both the &amp;#39;Local_Machine\my&amp;#39; store, as well as the Trusted Roots store. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I ran through a quick test of this: clearing out the Personal store provided the error mentioned above, but reloading the &amp;#39;Properties&amp;#39; of the SMTP server after creating the self-signed certificate through IIS showed the certificate present, and allowed it to be secured.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;Note: To check what&amp;#39;s in a given certificate store, load up MMC (mmc.exe in the &amp;#39;Run&amp;#39; box), under &amp;#39;File&amp;#39;, select &amp;#39;Add/Remove Snap-in&amp;#39;. Under the snap-in list, select &amp;#39;Certificates&amp;#39;, and then choose Local Machine. Once back at the MMC listing, under certificates, you can check &amp;#39;Personal\Certificates&amp;#39; to see its content.&lt;/p&gt;</description></item></channel></rss>