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.
windows-authentication
3,077
questions
254
votes
10
answers
160k
views
IIS Express Windows Authentication
I'm trying to use IIS Express with VS2010 to host a silverlight application. I modified my applicationhost.config file to allow for modification of the proper configuration settings. I have the ...
212
votes
5
answers
687k
views
Connection string using Windows Authentication
I am creating a website, but in the database I use windows authentication.
I know that you use this for SQL authentication
<connectionStrings>
<add name="NorthwindContex"
...
130
votes
23
answers
372k
views
Receiving login prompt using integrated windows authentication
I have a .NET 3.5 application running under IIS 7 on Windows 2003 server and cannot get integrated windows authentication working properly as I continue to get prompted for a login. I have set Windows ...
106
votes
9
answers
103k
views
Authentication issue when debugging in VS2013 - iis express
I'm trying to pick up the windows username when debugging in Visual Studio 2013. I am simply using:
httpcontext.current.user.identity.name
If I run this on my Dev Server it works fine, if I run it ...
103
votes
7
answers
321k
views
IIS7 folder permissions for web application
I am using windows authentication without impersonation on my company's intranet website with IIS7.
Under IIS7, what account is used to access the folder which contains my web app using these ...
94
votes
10
answers
119k
views
Pass NTLM with Postman
Is there a way to pass Windows Authentication with postman?
I have added this in header but still 401 Unauthorized.
Authorization: NTLM TkFcYWRtaW46dGVzdA==
As suggested by this link. I've ...
75
votes
10
answers
49k
views
No OWIN authentication manager is associated with the request
After trying to enable owin & AspNet Identity to my Web Api project (in VS 2013 + .Net 4.5.1) I get the following error in each valid or unvalid(request to none exist controller) requests :
<...
75
votes
9
answers
117k
views
Unable to get windows authentication to work through local IIS
So I've created a new ASP.NET MVC project using the intranet template. web.config contains the appropriate values (e.g. <authentication mode="windows"/>).
If I fire up the web app using the VS ...
73
votes
3
answers
173k
views
Connecting to MS SQL Server with Windows Authentication using Python?
How do I connect MS SQL Server using Windows Authentication, with the pyodbc library?
I can connect via MS Access and SQL Server Management Studio, but cannot get a working connection ODBC string for ...
68
votes
7
answers
73k
views
In IIS, why doesn't Window Authentication show up as one of the options for my web application?
I'm reading about how to set up windows authentication for my web application on IIS 7. In the description they have Window Authentication as an option in IIS.
I have Windows authentication turned on ...
60
votes
13
answers
36k
views
ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login
I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no ...
59
votes
3
answers
104k
views
Authentication failed because the remote party has closed the transport stream exception when getting a response from webservice
I am calling a third party service and when I ask for a response it throws out an exception that says
"Authentication failed because the remote party has closed the transport stream exception".
I ...
57
votes
9
answers
98k
views
ASP.NET Windows Authentication logout
How do you logout when using Windows authentication in ASP.NET like this web.config?
<authentication mode="Windows" />
I've already tried the following unsuccessfully. It redirects, but does ...
52
votes
4
answers
151k
views
IIS7: Setup Integrated Windows Authentication like in IIS6
This is for IIS 7 on a Windows Server 2008 that is not part of an AD domain. I would like to password protect a website, where people have to enter a username/password (a windows account for example) ...
51
votes
14
answers
58k
views
401 response for CORS request in IIS with Windows Auth enabled
I'm trying to enable CORS support in my WebAPI project, and if I enable Anonymous Authentication then everything works fine, but with Windows Auth + disabled anonymous authentication, the OPTIONS ...
51
votes
4
answers
40k
views
Windows Authentication not working on local IIS 7.5. Error 401.1
I recently had a nasty issue getting Windows Authentication to work on a local instance of IIS 7.5 (Windows 7 Pro) to an ASP.net 4.0 site. I followed the basic steps.
IIS Authentication
Disable ...
50
votes
7
answers
72k
views
Mixing Forms authentication with Windows authentication
I have an (ASP.NET 3.5) intranet application which has been designed to use forms authentication (along with the default aspnet membership system). I also store additional information about users in ...
49
votes
4
answers
84k
views
Making a web request to a web page which requires windows authentication
I am trying to make a request to a web page using WebRequest class in .net. The url that I am trying to read requires Windows Authentication due to which I get an unauthorised exception. How can I ...
46
votes
6
answers
20k
views
ASP.NET Identity + Windows Authentication (Mix mode - Forms + Windows)
I have tried my best to search the web before asking this question. I've seen similar questions on stackoverflow, however, none has been answered satisfactorily for a long time now. This is one more ...
44
votes
2
answers
37k
views
ASP.NET MVC - Authenticate users against Active Directory, but require username and password to be inputted
I'm developing a MVC3 application that will require a user to be authenticated against an AD. I know that there is the option in MVC3 to create an Intranet Application that automatically authenticates ...
42
votes
4
answers
47k
views
Unable to authenticate to ASP.NET Web Api service with HttpClient
I have an ASP.NET Web API service that runs on a web server with Windows Authentication enabled.
I have a client site built on MVC4 that runs in a different site on the same web server that uses the ...
40
votes
3
answers
105k
views
Run Code as a different user
Is there a way to tell my code to run as a different user?
I am calling NetUserSetInfo via a PInvoke and I need to call it as a different user. Is there a way to do that?
38
votes
4
answers
142k
views
How to get the current user's Active Directory details in C#
I am working on an C# and ASP.Net application, that uses Windows Authentication.
i.e. in Web.config:
<system.web>
<authentication mode="Windows" />
</system.web>
I want to ...
38
votes
2
answers
80k
views
How can I pass windows authentication to webservice using jQuery?
I'm using jQuery to call a .Net web service like this:
var service_url = "https://example.com/myservice.asmx"
$.ajax({
type: "GET",
url: service_url,
dataType: "xml",
data: "ParamId=" ...
37
votes
1
answer
39k
views
using windows authentication with active directory groups as roles
I've read several questions on this topic,
such as here, here, here and here;
but none have provided a working solution in my case.
What I want to do:
Implement Windows authentication for a web app ...
36
votes
8
answers
154k
views
How to get user name using Windows authentication in asp.net?
I want to get user name using Windows authentication
Actually, I implemented "Sign in as different user", when click this button Windows security will appear there we can give credentials.
...
34
votes
4
answers
30k
views
Why doesn't cURL work with Windows Authentication on IIS7?
I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it's not working. When I do ...
34
votes
3
answers
48k
views
Get the username in Forms authentication
I'm using Forms authentication.
In Windows Authentication for get the user name of the PC i use: User.Identity.Name
I need this information also in Forms authentication but User.Identity.Name doesn'...
32
votes
7
answers
100k
views
Database + Windows Authentication + Username/Password?
I have always thought that in order to connect to SQL server using windows authentication with explicitly specified credentials, you must LogonUser, Impersonate, then connect.
It seems to me that ...
31
votes
3
answers
39k
views
Windows Integrated Authentication in node.js Client
When using node.js as a client, is it possible to connect to a server using Windows integrated authentication (e.g. when connecting to IIS)?
My searches for this only turn up results where node.js is ...
30
votes
5
answers
26k
views
Client-server authentication - using SSPI?
I'm working on a client-server application and I want the client to authenticate itself to the server using the user's logon credentials, but I don't want the user to have to type in their user name ...
30
votes
6
answers
44k
views
How to use Windows login for single-sign-on and for Active Directory entries for Desktop Java application?
I'd like to have my desktop Java application to have single sign on related to
Active Directory users. In two steps, I'd like to:
Be sure that the particular user has logged in to Windows with some ...
29
votes
3
answers
48k
views
IIS Express HTTP Error 401.2 - Unauthorized
I have tried the suggestions in this post but I can not get Windows Authentication working with IIS Express in Vision Studio 2010. Now I get following error:
Here are my applicationhost.config file ...
29
votes
2
answers
6k
views
Getting an NTLM Challenge from an AJAX POST on just one page
Quite the mystery here. I have an ASP.NET MVC 4 web application using Windows Authentication that has been maintained for over 18 months without issue. Recently, it was deployed to a fresh site and I'...
28
votes
6
answers
70k
views
Connect To SQL Server With Windows Authentication From A Linux Machine Through JDBC
I want to be able to connect to a SQL Server using jdbc and windows authentication.
I saw some answers on the internet saying i should add the following property to the connection string:
...
28
votes
2
answers
61k
views
Cross Domain SQL Server Logins Using Windows Authentication
I have a SQL Server 2005 named instance using Windows Authentication with domain groups serving as logins. The domain structures are as follows:
Forest1 Forest2
/ \ ...
28
votes
3
answers
6k
views
Excel 2007 Pass-Through Windows Authentication
I've created a simple (asmx) web service which returns a DataSet.
I've added the webservice to my Excel 2007 workbook using the Data -> From Web button and I'm able to view / refresh the data.
The ...
27
votes
2
answers
37k
views
Windows authentication in linux docker container
i am trying to use windows authentication in linux docker container under kubernetes.
I am following this settings: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?...
27
votes
3
answers
34k
views
Does an IIS 7.5 web app with windows authentication require end users to have file permissions?
Short version:
For IIS 7.5 web applications with Windows Authentication does the end
user need to have Read file access?
Long version:
I have an intranet ASP.NET web app that uses windows ...
26
votes
5
answers
51k
views
Windows authentication failing in IIS 7.5
I'm building a simple internal application for my company, and it requires Windows Authentication for security. All other authentication modes are disabled. I'm stuck in a situation where internet ...
26
votes
2
answers
24k
views
SQL Server Management Studio 2008 Runas user on different domain over VPN
I am currently trying to run SQL Server Management Studio 2008 as a user who is on a different domain. I noticed in other threads that running the following command from a batch script will do this ...
24
votes
9
answers
26k
views
WebAPI CORS with Windows Authentication - allow Anonymous OPTIONS request
I have a WebAPI 2 REST service running with Windows Authentication. It is hosted separately from the website, so I've enabled CORS using the ASP.NET CORS NuGet package. My client site is using ...
24
votes
9
answers
22k
views
ASP.NET Web API Self-Host with Windows Authentication
I am trying to use the ASP.NET Web API Self-Host option with Windows authentication so I can determine the logged on user and ultimately accept or reject the user based on their identity. Here is my ...
24
votes
3
answers
34k
views
Native Library sqljdbc_auth.dll already loaded in another classloader
I have 2 java web apps that need to connect to SQL Server Database using Windows Integrated Authentication.
The first one that is loaded works fine but the second one throws the exception:
Native ...
24
votes
5
answers
25k
views
Impersonate using Forms Authentication
I have an ASP.NET site that must use Forms Authentication and not Windows Authentication to access a ActiveDirectoryMembershipProvider. The site must use forms because they need a designed input form ...
23
votes
3
answers
42k
views
Windows authentication doesn't work when I run project from Visual Studio
Windows authentication works good when I host my ASP.NET MVC project on IIS. But if I run it from Visual Studio - it doesn't.
Here is my Web.config:
<authentication mode="Windows" />
<...
23
votes
3
answers
29k
views
Using fiddler with Windows Authentication
I am testing some proxy settings for our application but I need to test a proxy that requires Windows Authentication (or network credentials).
For testing, I assigned the credential of the proxy to ...
23
votes
2
answers
25k
views
Impersonate Domain User with Integrated Pipeline
In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as" ...
22
votes
9
answers
141k
views
"Cannot create an instance of OLE DB provider" error as Windows Authentication user
I am trying to run openrowset from MS SQL Server on an Oracle server.
When i execute the following command:
select * from
OPENROWSET('OraOLEDB.Oracle','srv';'user';'pass',
'select * from table')
...
22
votes
4
answers
53k
views
windows authentication vs forms authentication
I am trying to understand concepts of windows authentication, forms authentication and their differences. I am confused. Can someone help me in clarifying this.
Thanks.