windows-authentication

Does access to server resources require client process to login to server machine?

情到浓时终转凉″ 提交于 2019-12-13 05:14:01
问题 Reposting my unanswered in technet.microsoft question? MSDN "ASP.NET Delegation" article tells: 1) "When you configure to use a particular account as the process identity, ASP.NET attempts to delegate that account. If it is a local account that is identical (including password) to a local account on a remote machine, delegation is possible. If such an account does not exist on the remote machine, to the network it appears as the Windows anonymous account (NT AUTHORITY\ANONYMOUS LOGON). In

Implementation of Custom Windows Authentication Package - LsaApUserLogonEx

强颜欢笑 提交于 2019-12-13 03:24:30
问题 I have been working on LSA auth package for introducing my custom logon mechanism in windows 10. So far, I have been successful in registering the auth package and get my LsaLogonUserEx method called by LSA. Now the thing which I am stuck at is how to prepare the OUT parameters of LsaApLogOnUser method. NTSTATUS NTAPI LsaApLogonUserEx( IN PLSA_CLIENT_REQUEST ClientRequest, IN SECURITY_LOGON_TYPE LogonType, IN PVOID ProtocolSubmitBuffer, IN PVOID ClientBufferBase, IN ULONG SubmitBufferSize,

owin self-host with windows authentication - AllowAnonymous not working

北城以北 提交于 2019-12-13 03:09:58
问题 I've enabled Windows authentication as described here It all works fine, there's just a tiny issue: Doing so makes every controller method protected by windows authentication. NO problem I thought, just use the [AllowAnonymous] adorner on the few controller methods where anonymous access is okay, but that won't work. Is there any way to get the self-host to not authorized every method on every controller? 回答1: You have to enable Windows auth and anonymous auth. documentation. As is, you have

IdentityServer4 Resource owner password and Win auth: unauthorized

£可爱£侵袭症+ 提交于 2019-12-13 02:53:57
问题 in the last few days I've been reading IdentityServer4 docs and putting together my sample server + sample client using Resource owner password. Now I'd like to add Windows authentication (will be done via Active Directory) in parallel, so the client app (not a web app but a desktop app) could either prompt the user for credentials or login using Windows authentication via Active Directory. The documentation about Windows Authentication explains how to configure IIS or HTTP.Sys, but what I

Using PDO's odbc to connect to a MSSQL server instance with Windows Authentication

瘦欲@ 提交于 2019-12-13 02:06:30
问题 I'm trying to connect to a MSSQL database using PDO with odbc. I'm aware that there's a package SqlSrv (but for some reason that package ( .dll ) won't load properly). So I found some documentation arguing it's also possible with PDO. In my PHP.ini I've enabled the extension php_pdo_odbc.dll and it loads fine. My connection string looks like this: $conn = new PDO( 'odbc: Driver=SQL Server; Server=MyServer\MyInstance; Database=MyDatabaseName; Trusted Connection=Yes;', 'MyWindowsUserName',

ASP.NET MVC3 Windows Authentication Pass Through to TFS

时光怂恿深爱的人放手 提交于 2019-12-12 20:52:43
问题 To simplify my problems i am basically trying to setup an ASP.NET MVC 3 website that will allow users to view work items assigned to them. i have the website views and controllers working. the problems occur when i try to deploy to IIS running on my machine (Win 7). the Windows Authentication used to identify the user and access tfs are not passed through to the webpage automatically as it asks them to login (i do not want this). the Authentication on IIS only has Windows Auth enabled and the

Does Integrated Windows Authentication work in Firefox?

落爺英雄遲暮 提交于 2019-12-12 19:04:27
问题 If my ASP.NET app is set up for ADFS using Windows Integrated Authentication, I know this will work in IE, but will it work in Firefox? I've seen some things on the web that indicate that there are problems, and you need to put a workaround in each client browser - http://codebetter.com/blogs/eric.wise/archive/2006/11/16/Note-to-self_3A00_-Firefox-Windows-Authentication.aspx 回答1: It's not a workaround. Firefox will not send your Windows Integrated Credentials to a website by default. You have

ASP.net MVC - using AuthorizeAttribute in multiple environments with Windows Authentication

徘徊边缘 提交于 2019-12-12 18:43:58
问题 I'm using windows authentication in my ASP.net MVC 3 application. I have a few different roles in my system: Administrator PowerUser GeneralUser We have a rule in place that the AD group names are different in each environment. For example, in Development the role names will be: Administrator_Dev PowerUser_Dev GeneralUser_Dev In production it would just be: Administrator PowerUser GeneralUser Is there a good solution for using Authorize in these different environments without changing the

ASP.NET windows authentication should always ask for credentials

别来无恙 提交于 2019-12-12 16:45:09
问题 Problem statement : I have implemented windows authentication on my website. I have used following code in my web.config for authentication <authentication mode="Windows"> </authentication> <authorization> <deny users="?"/> </authorization> Now, the problem is that when I access the website, it takes the default ( windows) credentials and tries to login. But I need that it should prompt the user for credentials so that user can enter domain-name\id and password of separate domain for

How to authorize CORS preflight request on IIS with Windows Authentication

拈花ヽ惹草 提交于 2019-12-12 15:08:09
问题 I have an API on ASP.net Core 2 (windows authentication) and a front on angular. I make a cors configuration to querying my backend from the SPA angular, but im blocked in cause of the preflight who are rejected from the IIS server because he don't have identification information. error message : Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://XXXXXX' is therefore not allowed access.