<?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 'windows authentication'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=windows+authentication&amp;orTags=0</link><description>Search results matching tag 'windows authentication'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Use Windows Authentication to sync a website?</title><link>http://forums.iis.net/p/1162694/1925003.aspx#1925003</link><pubDate>Tue, 17 Nov 2009 03:09:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925003</guid><dc:creator>k4k4sh1</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I have a package that runs a group of SQL scripts to set up a database for a website (the order is specified in Manifest.xml). As of now, I am providing SQL credentials to run the scripts, but I would like to be able to use Windows Authentication to run them as well. Is this possible using the command-line executable msdeploy.exe, and if so, how might it be done?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Looking for something like the following:&lt;/p&gt;&lt;p&gt;&amp;nbsp;msdeploy.exe -verb:sync -source:package=(package path) -dest:iisApp=(website name) -(some way to use windows authentication for scripts in Manifest.xml) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Login as different user in asp.net as in share point</title><link>http://forums.iis.net/p/1162665/1924877.aspx#1924877</link><pubDate>Mon, 16 Nov 2009 08:12:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924877</guid><dc:creator>dharam_hbtik</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>Hi everybody,

My request out here is Urgent, though i have passed through what I could access in this forum and others also, but cannot finding a working solution.

I have designed an ASP.NET application, at our organizational intranet, I have used Windows Authentication and it worked very efficiently. My problem is, I want my application to ask for re-entering of employee&amp;#39;s credential when he clicked on a log out control ( it could be anything - i didn&amp;#39;t decided what will trigger log out yet ). I want it to be like Sharepoint page where you can log as another user in the same machine.

I m using following code but not working properly

protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            _User = User.Identity.Name.Replace(&amp;quot;Domain\\&amp;quot;, &amp;quot;&amp;quot;);
            Label1.Text = _User;
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
       
            Response.StatusCode = 401;
            Response.StatusDescription = &amp;quot;Unauthorized&amp;quot;;
            Response.End();
            Response.Redirect(&amp;quot;Default.aspx&amp;quot;);       
    }

and HTML is


    Untitled Page


    
    &lt;div&gt;
        &lt;p&gt;Hello &lt;/p&gt;
        Sign in as Different user
    &lt;/div&gt;
    



I am waiting ...

Thanks.</description></item><item><title>aspx on IIS 5.0 accessing MSSQL Windows Authentication Failure</title><link>http://forums.iis.net/p/1161234/1918407.aspx#1918407</link><pubDate>Fri, 25 Sep 2009 22:02:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918407</guid><dc:creator>ss_panzer</dc:creator><cs:applicationKey>general--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m quite new to IIS and asp.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am writing a webpage using asp.net (c#) and setting up a webserver using ISS 5. The web form is accessing an MSSQL2005 database on another box, using windows authentication login.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;When I test the webform locally by using &amp;quot;View in browser&amp;quot; in visual studio, a .net Development Server is automatically setup, and the page is accessing the database with no problem.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;However, when I set the website using ISS, and access the web form I created through ISS&amp;#39;s localhost address, I always get this sql connection error:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&amp;quot;Login failed for user &amp;#39;&amp;#39;. The user is not associated with a trusted SQL Server connection. &amp;quot;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The two methods are using the exactly same connection string:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&amp;quot;Data Source=aaaaa;Initial Catalog=DevTrackIssues;Integrated Security=SSPI;&amp;quot; &lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My ISS is set to not allow anonymous users and use Windows authentication in &amp;quot;Directory security&amp;quot;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks so much in advance. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Windows Authentication Failing in IIS with IE8</title><link>http://forums.iis.net/p/1161205/1918316.aspx#1918316</link><pubDate>Fri, 25 Sep 2009 15:40:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918316</guid><dc:creator>WaterWolf12345</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Okay, I enabled kerberos logging as per this article: &lt;a href="http://support.microsoft.com/?kbid=262177" title="http://support.microsoft.com/?kbid=262177" target="_blank"&gt;http://support.microsoft.com/?kbid=262177&lt;/a&gt;&lt;/p&gt;&lt;p&gt;There&amp;#39;s now a couple of kerberos error messages in my event log, I don&amp;#39;t know if they were caused by IIS or not.&amp;nbsp; Error Code: 0xd KDC_ERR_BADOPTION and&amp;nbsp; Error Code: 0xd KDC_ERR_BADOPTION. I&amp;#39;ll have to see if I can figure out what they mean.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Windows Authentication Failing in IIS with IE8</title><link>http://forums.iis.net/p/1161205/1918281.aspx#1918281</link><pubDate>Fri, 25 Sep 2009 11:47:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918281</guid><dc:creator>WaterWolf12345</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;I have a Windows 2003 machine running IIS and I have set up a test website which has Integrated Windows Authentication enabled on it. I then try to access this website from another machine in the same domain. I am logged into this machine with my domain account. Using IE8, if I have the &amp;#39;Enable Integrated Windows Authentication&amp;#39; setting checked then it will popup the username and password dialogue but after three attempts at entering my domain username and password it is showing me a 401.1 error. If I disable this setting then it lets me into the test website straight away. I am able to log into the machine running the website as an admin with my domain account.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I need to be able to access the website with&amp;nbsp; &amp;#39;Enable Integrated Windows Authentication&amp;#39; checked as this is the default. I&amp;#39;m not sure where to begin to look for a solution to this problem, I understand that it may be something to do with Kerberos but I know absolutely nothing about that! Does anyone have any suggestions as to what I should be looking for?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS Session Timeout problem</title><link>http://forums.iis.net/p/1160915/1916985.aspx#1916985</link><pubDate>Tue, 15 Sep 2009 10:36:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916985</guid><dc:creator>Usman Sadjid</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am having problems trying to work out if it is possible to share iis session timouts accross web applications in the following scenario: -&lt;/p&gt;&lt;p&gt;In my environment there are 2 IIS Web Servers on the same network domain.&lt;/p&gt;&lt;p&gt;One of the servers will host a .NET web application.&amp;nbsp; The other will host a COTS document management system (OpenText Livelink Enterprise Server) which is not a .NET web application.&amp;nbsp; Both web applications will be using windows authentication.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; The COTS system will access the .NET web application such that when a User logs on to the COTS system, the .NET web application is accessed either via a web service or through a .NET aspx webpage.&amp;nbsp; The problem we have is that our client has a requirement in order to maintain iis timeouts accross both applications such that the same timeout period will effectively timeout a user from both the COTS system and the .NET web application at the same time.&amp;nbsp; By timeout, I mean require the user to re-authenticate.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My first question is, is it possible to pass an authentication token through from the COTS web application to the .NET web application in this scenario.&amp;nbsp; Secondly and more importantly, is it possible to handle iis session timeouts as described above?&amp;nbsp; If so, could you please direct me to any articles that may be of use, as I can&amp;#39;t seem to find anything.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated. &lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Windows Authentication service not available</title><link>http://forums.iis.net/p/1160068/1913681.aspx#1913681</link><pubDate>Sat, 15 Aug 2009 16:41:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913681</guid><dc:creator>kateroh</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;Sagiv,&lt;/p&gt;
&lt;p&gt;You can install &lt;a title="Web Platform Installer" href="http://www.microsoft.com/web/downloads/platform.aspx"&gt;Web Platform Installer&lt;/a&gt;&amp;nbsp;with which you can easily configure your server and install new extensions. To enable Windows Authentication you will need to go to Web Platform Tab, choose to customize Web Server and select &amp;quot;Windows Authentication&amp;quot; in Security feature group. &lt;/p&gt;</description></item><item><title>Windows Authentication service not available</title><link>http://forums.iis.net/p/1160068/1913673.aspx#1913673</link><pubDate>Sat, 15 Aug 2009 11:26:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913673</guid><dc:creator>Sagiv Shaul</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i&amp;#39;m new to IIS and programming on asp.net at all.&lt;/p&gt;
&lt;p&gt;last week we&amp;#39;ve learnt how to enable compilation debugging on iis using windows authentication.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m using windows vista and installed iis7 through the &amp;quot;Add Windows Features&amp;quot; window. in this window all pages, even on msdn.com and iis.net tell me to reach for a node :&lt;/p&gt;
&lt;p&gt;World Wide Web services -&amp;gt; Security -&amp;gt; Windows authentication&lt;/p&gt;
&lt;p&gt;that i don&amp;#39;t have in this window.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;As a result, i cannot perform the compilation debugging when i want to run web sites i develope on my computer at home.&lt;/p&gt;
&lt;p&gt;can someone point me to a place i can download an add-in for iis7 for Vista ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;Sagiv&lt;/p&gt;</description></item><item><title>Windows Authentication in IIS7</title><link>http://forums.iis.net/p/1159960/1913139.aspx#1913139</link><pubDate>Tue, 11 Aug 2009 10:22:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913139</guid><dc:creator>paul_macca</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I am writing an intranet application (ASP.Net / C#) that accesses the current users&amp;#39; security identifier using the code &lt;b&gt;UserPrincipal.Current.Sid&lt;/b&gt;. This works fine under the VS web development environment (Cassini) and in windows desktop applications. &lt;/p&gt;&lt;p&gt;&amp;nbsp;However, when I attempt to run the same code under IIS7 I get this error:&lt;br /&gt;&lt;b&gt;Unable to cast object of type &amp;#39;System.DirectoryServices.AccountManagement.GroupPrincipal&amp;#39; to type &amp;#39;System.DirectoryServices.AccountManagement.UserPrincipal&amp;#39;. &lt;/b&gt;&lt;/p&gt;&lt;p&gt;I can only imagine it has to do with the set up of the application identity but have no idea how to fix it. Please help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>ASP Classic, IIS 7, SQL 2005, and Windows Authentication Problem</title><link>http://forums.iis.net/p/1158154/1905774.aspx#1905774</link><pubDate>Thu, 04 Jun 2009 13:53:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905774</guid><dc:creator>thig95</dc:creator><cs:applicationKey>iis7_-_classic_asp-41</cs:applicationKey><description>&lt;p&gt;I have recently migrated an application written in ASP classic to a server running IIS 7 (64bit) on Server 2008 Standard. I have IIS 6 compatibility installed, as well as basic and windows authentication modules. This server is part of a corporate domain. I am trying to establish windows authentication to this web server as well as a SQL 2005 server also running on Server 2008. My desire is to use windows authentication to the db server, and this is where my problem lies.&lt;/p&gt;
&lt;p&gt;For more details, I have setup a custom site called CRM. This site has it&amp;#39;s own application pool also called CRM. I have configured the application pool identity&amp;nbsp;to use my domain account (for testing purposes since i know my account has rights to the db i&amp;#39;m trying to connect to.) When I enable windows authentication, I am able to successfully logon to the site and its ASP pages, however when calls to the db are made (using ADO) I get&lt;/p&gt;
&lt;p&gt;Microsoft OLE DB Provider for SQL Server&lt;font size="3" face="Times New Roman"&gt; &lt;/font&gt;&lt;font size="2" face="Arial"&gt;error &amp;#39;80040e4d&amp;#39;&lt;/font&gt;&lt;font size="3" face="Times New Roman"&gt; &lt;br /&gt;&lt;/font&gt;&lt;font size="2" face="Arial"&gt;Login failed for user &amp;#39;NT AUTHORITY\ANONYMOUS LOGON&amp;#39;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;So from this I assume even though i&amp;#39;m using my domain logon as the worker process identity, those credentials aren&amp;#39;t simply passed when making calls to other resources on the network. Is there a way to do that? My end goal is to have users get into the site without having to type their credentials, and have their domain account provide access to the db rather than having to setup a generic sql login and use that in my connection string.&lt;/p&gt;
&lt;p&gt;Clearly from the above error I am using OLEDB but I have also tried to set this up using a DSN connection via ODBC. Both resulted in the same error. So this&amp;nbsp;doesn&amp;#39;t&amp;nbsp;seem to&amp;nbsp;be a SQL problem, rather how credentials are being passed to sql from IIS. This setup will work if I use basic authentication, since it then just stores the id and password in cleartext. But I don&amp;#39;t want to go that route for obvious reasons.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated! I&amp;#39;ve found a slew of documentation on this for .NET, but i&amp;#39;m not about to rewrite my whole app just to get authentication working properly.&lt;/p&gt;</description></item></channel></rss>