Questions tagged [windows-authentication]

Integrated Windows Authentication is a term associated with Microsoft products that refers to the SPNEGO, Kerberos, and NTLM authentication protocols. Use tag with Windows authentication generally; though it might be best to use one of the more protocol-specific tags (such as Kerberos or NTLM) if the protocol being used is known.

Integrated Windows Authentication () is a term associated with Microsoft products that refers to the , , and authentication protocols with respect to functionality introduced with Microsoft Windows 2000 and included with later Windows NT-based operating systems. The term is used more commonly for the automatically authenticated connections between Microsoft Internet Information Services (), , and other aware applications.

IWA is also known by several names like HTTP Negotiate authentication, NT Authentication, NTLM Authentication, Domain authentication, Windows Integrated Authentication, Windows NT Challenge/Response authentication, or simply Windows Authentication.

Source: http://en.wikipedia.org/wiki/Integrated_Windows_Authentication

3028 questions
7
votes
1 answer

Forwarding NTLM credentials from IIS with ARR and URL Rewrite

Thanks in advance for your help. In my environment, I configured IIS to act as a reverse proxy and forward requests to certain paths to an application server on another host. In order to do this, I used Application Request Routing (ARR) and URL…
rkl3ss
  • 71
  • 1
  • 4
7
votes
4 answers

Re-authenticate User in MVC application for Action

How do I force a user to reauthenticate before performing an Action in MVC? We're using Windows authentication. There are some actions that we want to make sure are being performed by the user (and prevent other users from performing those actions…
7
votes
1 answer

DirectoryServicesCOMException (0x80072020) when using Active Directory from ASP.NET application

Introduction I'm maintaining a legacy ASP.NET 3.5 application that queries Active Directory. The application uses "Integrated Windows Authentication" and is designed to connect to Active Directory using its own security context rather than a…
Sam
  • 40,644
  • 36
  • 176
  • 219
7
votes
2 answers

IIS7 is losing the authenticated user for cffileupload (CF10)

On one of our intranet pages, I'm using cffileupload to upload multiple photos:
Nick Petrie
  • 5,364
  • 11
  • 41
  • 50
7
votes
2 answers

How to use Windows Authentication in WPF?

I'm not finding much documentation on how to use Windows Authentication in a WPF app. I wouldn't have thought that it would be any different than in any non-WPF app, but it seems that it is. I want to go into my project Properties -> Application…
Patrick Szalapski
  • 8,738
  • 11
  • 67
  • 129
7
votes
0 answers

Active Directory PrincipalContext.ValidateCredentials when change password on next login policy is active

I am using the classes in System.DirectoryServices.AccountManagement namespace to interact with Active Directory from my web application. To authenticate user credentials against Active Directory I use the following line of code. bool…
7
votes
1 answer

SharePoint 2013 / IIS 7.5 Impersonation/Delegation/Double Hop

Ok, I have spent about 15 hours trying to resolve this problem and I have finally been resigned to posting here to try to get it resolved. I know this post is very long but I have done all the normal things that I'm going to be told to try so I…
6
votes
2 answers

How to redirect a WCF service to an HTTPS endpoint with Windows credential

Here is the situation I am trying to deal with: We have a WCF client that works with an http endpoint and an https endpoint but not when it is redirected (302) from http to https. We have an F5 load balancer that is performing the redirect and SSL…
6
votes
1 answer

How to send mails using SmtpClient and DefaultNetworkCredentials to a distribution list that only allows authenticated senders?

I'm trying to send automated emails from a C# console application from machines to clients all on the same domain via our internal Exchange 2007 server (using SMTP), but I'm hitting a snag with distribution lists that only allow authenticated…
6
votes
4 answers

Why does my MVC3 Intranet site windows authentication not work when published

We have a simple intranet site in MVC3 and entity framework. Everything works fine for running in debug from visual studio. When I publish the site to either my local boxes IIS7.5 webserver or to a dev box on the same domain, then I get prompted…
Brian
  • 2,229
  • 17
  • 24
6
votes
3 answers

Windows Authentication - Getting current user name

In my MVC application I want to render a table in a cshtml file, if the current log in user is some x person. I am using windows authentication and I have made the following changes in web.config file.
Jash
  • 942
  • 4
  • 17
  • 40
6
votes
2 answers

How do I re-authenticate a user in an ASP.NET MVC 3 Intranet application?

The application is already using Windows integrated security, not Forms. What I am trying to accomplish is a so called "step-up" authentication, or "force re-authentication" for the following scenario: the user is browsing the site doing common,…
6
votes
1 answer

Windows Authentication not working for classic ASP pages (but does work for ASP.Net pages w/in same site)

We have an IIS7 intranet site running under integrated pipeline that is mostly ASP.Net with a few legacy classic ASP pages. The site allows anonymous access to most areas, but uses Windows Authentication to protect certain folders. Requests to…
Tom Wayson
  • 1,187
  • 1
  • 12
  • 21
6
votes
1 answer

Enabling PUT on IIS 7.5 for an ASHX handler using Windows Authentication

I have an ASP.NET (.NET 4) website that uses http PUT for an .ashx generic handler. The PUT call originates from a Silverlight front end. All works in VS 2010 on my local machine (Cassini web server). Then I deployed to an IIS7.5 Win Server 2008…
kmk
  • 613
  • 9
  • 22
6
votes
2 answers

Windows authentication does not work behind AWS Application Load Balancer

I have an ASP .NET WCF service web that uses Windows Authentication. After deploying the web service to the server (Windows Server 2012) and enabling Windows Authentication on IIS, I visit the page using localhost going directly to the server. It…