windows-authentication

HttpContext.Current.User.Principal vs WindowsIdentity.GetCurrent()

旧巷老猫 提交于 2019-12-03 11:45:32
What's the difference in an asp.NET environment with Windows Authentication and Identity Impersonation turned on, between HttpContext.Current.User.Principal and WindowsIdentity.GetCurrent()? According to this forum on WindowsIdentity.GetCurrent().Name vs. User.Identity.Name : User.Identity.Name represents the identity passed from IIS. WindowsIdentity.GetCurrent().Name is the identity under which the thread is running. Depending on your app's authentication settings in IIS, they will return different values: | Anonymous | Impersonate | User.Identity.Name | WindowsIndentiy.GetCurrent() | |------

Obtain Network Credentials from Current User in Windows Authentication Application

余生颓废 提交于 2019-12-03 11:39:59
问题 I was wondering whether it was possible to obtain the current user object and get their credentials so that I can pass them along to a NetworkCredential object which I am using to connect to my AX .NET Business Connector. As, at the moment I'm having to specify it connect as a specific user which I set when I instantiate a NetworkCredential object: private NetworkCredential nc = new NetworkCredential("myUser", "myPassword", "myDomain"); I was hoping to do something like: private

windows authentication vs forms authentication

浪子不回头ぞ 提交于 2019-12-03 08:42:49
问题 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. 回答1: Windows Authentication refers to authenticating against Windows user accounts on the box that the application is running on. Forms authentication is a stand alone method of authenticating in .NET forms that you can hook up to some other system, such as a database. 回答2: Windows Authentication provider is the default

Windows Authentication Headers without .NET. Possible?

て烟熏妆下的殇ゞ 提交于 2019-12-03 06:07:06
问题 I was wondering if anyone knew of a way to use Windows Authentication without hosting on an ASP site. It's an intranet w/ access to LDAP, so I'm wondering if there's a way to force the client to provide me the data as if it was coming from an ASP site. I just need the login domain and username and I can run from there. Using Node.js on Ubuntu. Anyone have any experience with this? 回答1: Update: There's now a module that implements Windows-integrated authentication. In your 401 response, you

Windows Authentication and Angular 4 application

别说谁变了你拦得住时间么 提交于 2019-12-03 06:01:00
问题 I am writing an Angular 4 application that needs to get some data from Asp.Net WebApi. We are using windows authentication for the WebAPI and I am wondering how I can pass user's windows identity from my Angular Application to WebApi. I've found couple examples that are involving nesting your application with MVC application but I would to keep UI away from MVC. Is there a way to do it without adding .net mvc to my Angular website? 回答1: When you send your http request from Angular to your

Windows Authentication for SQL Server using JBDC on a Mac

╄→гoц情女王★ 提交于 2019-12-03 05:50:44
问题 Is it possible to connect to SQL Server using Windows authentication/integrated security from a Mac? I am using the type 4 JDBC driver provided by Microsoft. The front end (a form application) is coded in Java. Everything works perfectly on Windows but one person in the office uses a Mac. Is this possible? FYI, I have never used Macs so I am very much the novice with them. I have searched all over the Internet but have not found a solution. Thank you in advance. 回答1: This information is hard

IIS Binding with windows authentication

拜拜、爱过 提交于 2019-12-03 04:18:45
问题 I have a local website (http://localhost/testsite) with Windows Authentication, that works well. Now I changed the binding of the site to an URL (http://testsite.blablabla.biz) with Windows Authentication which leads to an HTTP 401.1 - Unauthorized You do not have permission to view this directory or page using the credentials that you supplied error. What am I doing wrong? I searched already a lot on google, but nothing really helps. I think it has something to do with domain names or

authentication issue with an intranet website running under IIS6

谁说我不能喝 提交于 2019-12-03 04:00:51
I have an an intranet website running under IIS6 (under a specific port, not the default one) with a integrated windows authentication enabled and uses an application pool configured with a service account. the issue is, if I access the website using the server name with a fully qualified domain in the URL, it throws a login prompt (doesn't work even if enter my windows login credentials), but if I use the IP address of the server then it works fine. Please let me know what I need to do to get the URL with server name working. for example http://servername:8080/default.aspx throws login prompt

How to add Roles to Windows Authentication in ASP.NET Core

让人想犯罪 __ 提交于 2019-12-03 03:58:43
问题 I created an asp.net core project in visual studio 2015 with windows authentication. I can't figure out how to add roles to the Identity. I have a table with usernames for the windows account. And when the user opens the website the user is added to the Identity (I assume that's what happens, because I can display the username by User.Identity.Name) and I want to pull out Roles from another table and assign them to the user, is this possible? Or perhaps is there a better way to do it? (Why?,

“Cannot create an instance of OLE DB provider” error as Windows Authentication user

烂漫一生 提交于 2019-12-03 03:47:07
问题 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') the following error occurs Msg 7302, Level 16, State 1, Line 1 Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server "(null)". Can anyone tell me how I can use openrowset with OraOLEDB.Oracle ? I am using 64 bit version of MS SQL Server and Oracle OLEDB driver. Edit I have