<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mvolo.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>IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx</link><description>One of the key improvements granted by the ASP.NET integration in IIS 7.0 is a unified authentication model. Instead of the two-stage model in previous versions of IIS, where IIS executed its own authentication methods before ASP.NET processing began,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>IIS 7.0 Server-Side : Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13012</link><pubDate>Mon, 11 Feb 2008 20:16:44 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13012</guid><dc:creator>IIS 7.0 Server-Side : Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx"&gt;http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Two-Level Authentication with Forms Authentication and Windows Authentication </title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13014</link><pubDate>Mon, 11 Feb 2008 20:52:46 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13014</guid><dc:creator>MVolo's Blog</dc:creator><description>&lt;p&gt;The integration of IIS and ASP.NET authentication stages in Integrated mode applications brings a lot&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13017</link><pubDate>Wed, 13 Feb 2008 09:37:50 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13017</guid><dc:creator>Claudiov</dc:creator><description>Hi Mike, I have followed your instructions but I receive HTTP 503, the service is unavailable, I'm I missing something?...</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13018</link><pubDate>Wed, 13 Feb 2008 17:49:20 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13018</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Claudiov,&lt;/p&gt;
&lt;p&gt;Please follow &lt;a rel="nofollow" target="_new" href="http://mvolo.com/blogs/serverside/archive/2006/10/19/Where-did-my-IIS7-server-go_3F00_-Troubleshooting-_2200_service-unavailable_2200_-errors.aspx"&gt;http://mvolo.com/blogs/serverside/archive/2006/10/19/Where-did-my-IIS7-server-go_3F00_-Troubleshooting-_2200_service-unavailable_2200_-errors.aspx&lt;/a&gt; and see whether you are getting an error message in the event log.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13097</link><pubDate>Fri, 14 Mar 2008 11:55:34 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13097</guid><dc:creator>Steve</dc:creator><description>will this approach work with web services?
Is it possilbe to use one url which allows integrated authentication + user name password to be passed via soap header properties.  The if the caller is not a windows user, use passed in credentials?
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13099</link><pubDate>Fri, 14 Mar 2008 18:03:36 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13099</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;You wouldnt use this exact approach, but something similar. &amp;nbsp;If you can extract the credentials in AuthenticateRequest, you can run after the WindowsAuthenticationModule and authenticate as that user. Otherwise, let the request go forward and be rejected with the NTLM / Negotiate challenge to authenticate with Windows credentials.&lt;/p&gt;
&lt;p&gt;If you cannot extract credentials until later when WCF has processed the request/SOAP payload, then just authenticate as special &amp;quot;interim&amp;quot; user in AuthenticateRequest to avoid the request being rejected, then in your web service either authenticate with the SOAP credentials or reject the request with 401 to allow Windows authentication to take place. &lt;/p&gt;
&lt;p&gt;Just a note: this information is intended for WCF web services hosted in IIS 7.0 running in Integrated mode.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13291</link><pubDate>Wed, 21 May 2008 23:30:43 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13291</guid><dc:creator>AndrewHa</dc:creator><description>&lt;p&gt;Mike what if you wanted to add to this module for x509cert authentication and SecureID. What happens if your internal users don't have passwords and you don't want to distribute another ID. So your users that may use windows auth when they are logged onto your network are hitting the same site from the internet and have the same certificate they would use when they log onto their workstations. Or some of your users have secureID cards.&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13292</link><pubDate>Fri, 23 May 2008 17:21:39 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13292</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;Theoretically, you would configure the the required authentication (cert auth or secureId) for the gateway page, and flow their authenticated identity to the forms ticket the same way I do it here using Windows Auth.&lt;/p&gt;
&lt;p&gt;The way you determine the identity in the gateway is completely up to you, so it should support any authentication protocol you'd like to use. As long as you then take that identity and issue a forms auth ticket to represent it.&lt;/p&gt;
&lt;p&gt;Keep in mind though that Forms Authentication is a ticket-based scheme, which has inherent security limitations. &amp;nbsp;Using it to represent a stronger authentication scheme (like x509) is essentially downgrading the security of that scheme - if someone manages to exploit the forms auth ticket.&lt;/p&gt;
&lt;p&gt;For more info on ticket security, search &amp;quot;client ticket security&amp;quot; in my old article, &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/magazine/cc163702.aspx"&gt;http://msdn.microsoft.com/en-us/magazine/cc163702.aspx&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>[转]Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13398</link><pubDate>Tue, 22 Jul 2008 07:48:40 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13398</guid><dc:creator>Benny_NET</dc:creator><description>&lt;p&gt;[原文：&lt;a rel="nofollow" target="_new" href="http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applic"&gt;http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applic&lt;/a&gt;...&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13430</link><pubDate>Wed, 13 Aug 2008 17:53:27 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13430</guid><dc:creator>Neeraj Tomar</dc:creator><description>Hi Mike,

My project requires windows Authentication and if user do not provide correct credentials or don't have valid credentials, then to display login page and use ADAM (Form authentication). I tried your sample application. Challenge response dialog appears but if i cancel it then HTTP Error 401.2 appears. 

I need to display login page instead. Let me know how can i override 401.2 Unauthorized error page with my login page. Your help is highly appreciated.

Regards,
Neeraj Tomar</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13491</link><pubDate>Fri, 19 Sep 2008 04:42:21 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13491</guid><dc:creator>Chaos_Crafter</dc:creator><description>What if you wanted the reverse of this.
You have a web page that may be internally or externally accessed.  You'd like the internal users to be automatically recognised by their window id, with no data entry at all.  You want external users to be directed to a forms login page.
Presumably you can set it to windows login, and then recognise that there is no user auth, but how do you surpress the username/password box if you can't detect a windows user?</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13505</link><pubDate>Mon, 06 Oct 2008 04:10:20 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13505</guid><dc:creator>Chuang</dc:creator><description>Hi Mike.
There is this button called "Log on To" in Active Directory where an admin can specify which machines a user can log on to.
My situation is that the admin sets all the users to be able to log on only to their own desktop PCs.
It seems that Forms authentication doesn't work in this case unless I'm accessing the web application from my own PC.
Is there any way around this without needing the admin to allow the server as one of the computers the user can log on to?
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13530</link><pubDate>Sun, 26 Oct 2008 11:21:46 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13530</guid><dc:creator>Basel</dc:creator><description>hi Mike. I was working on web application on .net 2.0 , deployed into win server 2003 and IIS 6.0 , and after i moved it to windows server 2008 and IIS 7.0 , the form based authentication didn't redirect correctly like the way you describe in the article above, so i decide to change the Application Pool from integrated to Classic , even through it didn't work, so are there away other than using a wrapper module you,ve create.</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13621</link><pubDate>Wed, 17 Dec 2008 20:38:27 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13621</guid><dc:creator>fuzzlog</dc:creator><description>Is the "Login.aspx" page stated in the web config file mandatory?  I created a new page (LoginNext.aspx) and replaced "Login.aspx" with that in the web config file.  Now when I direct IE to "Login.aspx" the code module does nothing.  Meaning that it doesn't redirect to "LoginNext.aspx" (I was under the impression the module redirected to whatever page was specified in the within the "location" tag.

The reason I'm doing this is because we have many existing sites that need to be converted to this hybrid login scenario.  If someone is attempting to login from within the network, they should be redirected to the requested page, or at least a default "authenticated" page, if not, they should be shown the login page.  Since most of our users have our various login pages already saved as favorites, I wanted apply this so that it was seamless to them (thus leaving the existing "Login.aspx" under forms Authentications so that it would redirect to "LoginNext.aspx" and be handled accordingly).

Any suggestions?

Thanks</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13622</link><pubDate>Wed, 17 Dec 2008 22:10:23 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13622</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;fuzzlog,&lt;/p&gt;
&lt;p&gt;You can change the login page url in the &amp;lt;forms&amp;gt; configuration element.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13623</link><pubDate>Wed, 17 Dec 2008 23:35:49 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13623</guid><dc:creator>fuzzlog</dc:creator><description>Mike,&lt;br /&gt;&lt;br /&gt;Thanks for the response. In your code (web.config), the &amp;quot;Login.aspx&amp;quot; file was only mentioned in the &amp;quot;path&amp;quot; attribute of the &amp;quot;location&amp;quot; tag that contained the &amp;quot;&amp;quot; tag. Why wouldn&amp;#39;t just replacing the new file name in that &amp;quot;path&amp;quot; attribute work accordingly?&lt;br /&gt;&lt;br /&gt;Below are the changes I&amp;#39;ve done to the web config file. The result after those changes is that all pages act as if Authentication had been set to &amp;quot;None&amp;quot;. I&amp;#39;m using IIS 6.0, integrated authentication plus anonymous (to prevent the credentials request popup). This setup works just fine with your code unmodified. &lt;blockquote&gt;&lt;!-- Deny access to anonymous users --&gt;&lt;!-- Disable Forms Authentication for this URL --&gt;&lt;!-- Disable Forms Authentication --&gt;&lt;!-- Enable IIS Windows authentication for the login page --&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thanks again for any input.</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13624</link><pubDate>Wed, 17 Dec 2008 23:48:52 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13624</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;fuzzlog,&lt;/p&gt;
&lt;p&gt;You'll need to change both the location path and set the loginUrl in the &amp;lt;forms&amp;gt; element to the new login url. &amp;nbsp;See &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/1d3t3c61.aspx"&gt;http://msdn.microsoft.com/en-us/library/1d3t3c61.aspx&lt;/a&gt; for the latter.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13625</link><pubDate>Wed, 17 Dec 2008 23:51:57 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13625</guid><dc:creator>fuzzlog</dc:creator><description>Darn,&lt;br/&gt;&lt;br/&gt;some tags were stripped.  Anyhow, what I did was to add the "LoginNext.aspx" path to the "forms" tags as well as replace "Login.aspx" with "LoginNext.aspx" in the "location" tag.&lt;br/&gt;&lt;br/&gt;This produces the "Authentication mode='None'" behavior described in post above.</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13626</link><pubDate>Thu, 18 Dec 2008 01:06:19 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13626</guid><dc:creator>fuzzlog</dc:creator><description>Mike,&lt;br/&gt;&lt;br/&gt;The problem I was having was due to the following, "FormsAuthentication.SetAuthCookie(wi.Name, true);".  Setting the second parameter to "true" saved a cookie in the my system.  This authentication cookie persisted even after I made the changes to the web.config, so when I ran it again, I was already authenticated and would always go directly to any page a chose.&lt;br/&gt;&lt;br/&gt;After I cleared the cookies in IE and changed the parameter to "false" the code works correctly.&lt;br/&gt;&lt;br/&gt;Thanks for your willingness to share you knowledge.</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13653</link><pubDate>Mon, 12 Jan 2009 10:54:29 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13653</guid><dc:creator>Nick Watt</dc:creator><description>&lt;p&gt;Mike,&lt;/p&gt;&lt;p&gt;Many thanks for sharing your knowledge. &amp;nbsp;You won&amp;#39;t believe how much time you have saved me. &amp;nbsp;I developed our intrant on server 2k3 with iis6 for the school I work in which takes advantage of student and staff AD logins, but also uses forms authentication for their parents to login externally (we didn&amp;#39;t want to create AD logins for the parents because that would just be silly to manage!).&lt;/p&gt;&lt;p&gt;We have recently just bought a brand new server for the intranet and as we are in the process of upgrading our servers to 2k8 the intranet server was subsequently installed with this version. &amp;nbsp;This article has helped me tremendously in getting the application migrated to the new server quickly.&lt;/p&gt;&lt;p&gt;Thanks again.&lt;/p&gt;&lt;p&gt;Nick (nwatt@hotmail.com)&lt;/p&gt;</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13749</link><pubDate>Fri, 20 Mar 2009 21:04:25 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13749</guid><dc:creator>Ron Klose</dc:creator><description>I tried to follow the example.  I had some success.
The authentication types it switched between were windows integrated, and http-auth (not sure what the current term of the firefox/ie popup authentication challenge).  Is there some configuration I have to adjust to get it to switch between windows integrated and forms.
Thanks    </description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13768</link><pubDate>Sun, 05 Apr 2009 18:17:17 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13768</guid><dc:creator>David Steadman</dc:creator><description>I am getting an error when I am trying to add the location the system.webserver complains it is not a valid child element of location. Any help would be great...</description></item><item><title>Authentification par formulaire &#171; minimaliste &#187;</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13777</link><pubDate>Fri, 10 Apr 2009 13:30:44 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13777</guid><dc:creator>Blog de l'équipe support IIS France</dc:creator><description>&lt;p&gt;L'authentification par formulaire – &amp;#233;galement appel&amp;#233;e authentification par cookie – est aujourd'*** &amp;#233;norm&amp;#233;ment&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13796</link><pubDate>Thu, 30 Apr 2009 23:23:18 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13796</guid><dc:creator>William Lin</dc:creator><description>Hi Mike.

Thanks for providing this solution. We have implemented your solution and it works. But, my question is, Why not enable both forms and windows authentication in IIS7. Then in the location element for login.aspx only have &lt;formsAuthenticationWrapper enabled="false" /&gt;

Thanks,
Will
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13810</link><pubDate>Fri, 15 May 2009 18:01:57 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13810</guid><dc:creator>Brad</dc:creator><description>Mike,
This sounds very close to what we are wanting to implement.  We have multiple domains and want to connect to our web applications using forms authentication.  We would like to use Active Directory as the data store for the forms authentication and we need our web applications to impersonate the domain user that logged on through forms authentication.  The catch is the users may or may not be logged on to the domain at the time they connect to our web application.  Is there a way to use forms authentication to authorize a user and "convert" to windows authentication once inside the application?</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13841</link><pubDate>Tue, 02 Jun 2009 01:12:31 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13841</guid><dc:creator>mcm</dc:creator><description>&lt;p&gt;Here's my scenario, when a page needs to make changes to the file system, instead of giving access to the IIS user I use impersonate to get the page to run under a different account that does have write access. This prevents things like the folder getting recreated loosing the permission changes given to the IIS user.&lt;/p&gt;
&lt;p&gt;Would there be a better way of achieving that or will your solution be the only way.&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13909</link><pubDate>Wed, 15 Jul 2009 19:51:56 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13909</guid><dc:creator>Saiangu</dc:creator><description>Hi, 

I followed this sample, but my login page images are not displayed even though I have given them in the location attributes. Please help.

Thanks</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13911</link><pubDate>Thu, 16 Jul 2009 11:53:21 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13911</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Saiangu,&lt;/p&gt;
&lt;p&gt;Please check the logfiles or get a failed request trace to identify why your images arent loading.&lt;/p&gt;
&lt;p&gt;See &lt;a rel="nofollow" target="_new" href="http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx"&gt;http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13941</link><pubDate>Sat, 08 Aug 2009 18:22:15 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13941</guid><dc:creator>Eric</dc:creator><description>&lt;p&gt;mcm, we do the same thing. &amp;nbsp;It is unfortunate that MS never considered this as an option, which you can see from the article:&lt;/p&gt;&lt;p&gt;&amp;quot;For some reason, you want all users to first log in using their Windows credentials&amp;quot;&lt;/p&gt;&lt;p&gt;I think that this is a really good reason. &amp;nbsp;It limits damage to the site in the event that there&amp;#39;s a flaw in the anonymous portion of the site.&lt;/p&gt;&lt;p&gt;Note that this config works just fine in the Classic Pipeline mode. &amp;nbsp;You just have to ignore the error/warning message that the IIS manager gives you.&lt;/p&gt;&lt;p&gt;I would also like to know if there is another way to achieve this w/o having to keep it running in Classic mode, which I&amp;#39;m assuming will go away at some point in the future.&lt;/p&gt;&lt;p&gt;One possibility is to set up a second site with the same webroot, in a different app pool and with a different app pool user, but you do then run into some problems with the shared config files.&lt;/p&gt;</description></item><item><title>www.macdueltd.co.uk</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13957</link><pubDate>Sun, 06 Sep 2009 06:31:58 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13957</guid><dc:creator>www.macdueltd.co.uk</dc:creator><description>&lt;p&gt;MacDue provide complete turnkey production lines and really do have the most technologically advanced machinery of it’s type&lt;/p&gt;
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13977</link><pubDate>Mon, 05 Oct 2009 11:32:51 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13977</guid><dc:creator>Denayer</dc:creator><description>Hello Mike,
I had a look at your coding.
There is a function 
 public static void EnableFormsAuth(HttpContext context, bool enable)
but I do not see any call to this function.
Can you please tell me in which situation this function is called.
Thanks,
Wim.
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#13985</link><pubDate>Fri, 23 Oct 2009 09:53:59 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13985</guid><dc:creator>Vishal Banker</dc:creator><description>Hi Mike,

Actually i am usnig custom authentication in my application and i also want to use windows authentication at application level. But after enabling windows authentication i am getting error on all my pages. Need your help</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14030</link><pubDate>Thu, 19 Nov 2009 18:20:23 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14030</guid><dc:creator>Dietrich</dc:creator><description>Great post!

Is there anyway to avoid the user getting a dialog box when there AD user credentials are not passed or authenticated? I would like to be able to fallback to a custom login form if the credentials are not authenticated. Any ideas?</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14037</link><pubDate>Fri, 20 Nov 2009 19:53:04 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14037</guid><dc:creator>Sri</dc:creator><description>Hi Mike,

Is it possible to use the same windows authentication to use in Windows Application.

Thank you

Sri</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14048</link><pubDate>Mon, 30 Nov 2009 16:14:39 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14048</guid><dc:creator>Dietrich</dc:creator><description>Great post!

When I try this workaround, if the user cannot be authenticated through windws auth, they get the browser prompt to enter username and password. After the third time they are redirected to an error page. Instead of the browser prompt, I want my users to get the login form. I thought that is what this solution did. Is there something I am missing?
</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14068</link><pubDate>Thu, 07 Jan 2010 14:58:34 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14068</guid><dc:creator>Chris Miller</dc:creator><description>This looks great and thanks for including the source code.  Is this solution limited to IIS7 or can it be used as well with IIS6 (or IIS7 in classic mode)</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14076</link><pubDate>Tue, 19 Jan 2010 07:56:37 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14076</guid><dc:creator>Thodsapon</dc:creator><description>This great for me and can it be used on Windows Identity Foundation in part of Security Token Service Web Site</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14091</link><pubDate>Sat, 06 Feb 2010 20:17:36 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14091</guid><dc:creator>Daniel</dc:creator><description>How do I impersonate a Actice Directory user from code?

I have asp.net web service supposed to run in IIS 7 on windows server 2008. The user is already authenticated using custom authentication method. I need the code to be executing with a AD user that is logged on and authenticated.</description></item><item><title>re: IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication</title><link>http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx#14188</link><pubDate>Mon, 17 May 2010 14:09:44 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14188</guid><dc:creator>Maddy</dc:creator><description>Hi Mick,

After implementing the above mentioned dual mode authentication, I published it to IIS7. In the site binding I specified the IP address to the same machine rather having 'all unassigned'. Then when I try to access this using the url (http://192.168.1.54:8123/page.aspx or http://192.168.1.54:8123/login.aspx) it always promts a window to enter windows credentials. It says authentication required.(Enter username and password for http://192.168.1.54:8123). I know this is due to:  &lt;authorization&gt; &lt;deny users="?" /&gt; &lt;/authorization&gt; configuration. So... how can I get ride of this promting window when I publish to IIS7?

Thanks in advance.</description></item></channel></rss>