sspi

Node in Corporative Environment with NODESSPI

不打扰是莪最后的温柔 提交于 2019-12-05 01:42:55
问题 I developed a NODE API to serve data to Angular app. The original idea is to use NODESSPI for integrated authentication as we plan to run this on a corporative environment. CORS will be needed as the API Node will be hosted on a different domain. I'm struggling to use NODESSPI for integrated authentication of the $HTTP requests. To test it on my computer I've created a simple js file to instantiate a node server with express to run my angular app (I know it could be done without express, but

Git for Windows, Domain Kerberos + ssh to Linux Server?

可紊 提交于 2019-12-03 21:56:07
I've been bashing my head against the desk, attempting to provide an out of box, windows workstation git for developers. This already 100% works on Linux, you kinit, and then you ssh without being prompted. The Active Directory Domain Serves as the Kerberos Server, KDC etc.. My Linux Clients can get their kerberos tickets from it, and pass them to my linux servers, without any problem. In fact I've been so burned with kerberos AD, I know it incredibly well unfortunately. Normally on Linux clients, I have to have a proper krb5.conf, does git for windows support this type of config? DO I just

Node in Corporative Environment with NODESSPI

三世轮回 提交于 2019-12-03 17:23:03
I developed a NODE API to serve data to Angular app. The original idea is to use NODESSPI for integrated authentication as we plan to run this on a corporative environment. CORS will be needed as the API Node will be hosted on a different domain. I'm struggling to use NODESSPI for integrated authentication of the $HTTP requests. To test it on my computer I've created a simple js file to instantiate a node server with express to run my angular app (I know it could be done without express, but it was faster to implement). It is running on Port 5001. 'use strict'; var express = require('express')

The target principal name is incorrect. Cannot generate SSPI context

邮差的信 提交于 2019-12-03 08:04:11
问题 I am struggling to get a SQL Server connection from machine A to machine B which is running the SQL Server. I have Googled extensively and all the things I have found have not worked. Nor do they lead you step by step through the process of solving this. We are not using Kerberos, but NTLM where configured. The machines involved are (xx is used to obscure some of the machine name for security purposes): xxPRODSVR001 - Windows Server 2012 Domain Controller xxDEVSVR003 - Windows Server 2012

Cannot create SSPI context

微笑、不失礼 提交于 2019-12-03 06:36:48
问题 I am working on a .NET application where I am trying to build the database scripts. While building the project, I am getting an error "Cannot create SSPI context.". This error is shown in the output window (inside VS2008 screen) and the building process failed. Please help on this. SQL Server is configured to work on Windows authentication & running as network service (these two things are must for my project). Please help on this. This error is not seems to be consistent. It was fixed in the

Cannot create SSPI context

大城市里の小女人 提交于 2019-12-02 20:15:15
I am working on a .NET application where I am trying to build the database scripts. While building the project, I am getting an error "Cannot create SSPI context.". This error is shown in the output window (inside VS2008 screen) and the building process failed. Please help on this. SQL Server is configured to work on Windows authentication & running as network service (these two things are must for my project). Please help on this. This error is not seems to be consistent. It was fixed in the past by restarting the machine, changing the system time to match the domain time and some suggestions

How do I handle Negotiate in .NET?

喜你入骨 提交于 2019-12-01 06:50:20
I'm trying to implement Negotiate (at least the Kerberos part) in a small web server. I've figured out how to get a client to send me a Kerberos Negotiate Authorization header. I've figured out how to decode that data (ASN.1). I cannot figure out how to turn this into a WindowsIdentity . I can get a general idea of how I might from KerberosReceiverSecurityToken , but I can't find anything like a NegotiateReceiverSecurityToken . I've been digging through lots of DLLs and I can't for the life of me figure out where IIS/.NET processes the Negotiate header. I presume (if I had my own SspiWrapper )

Solution to avoid double-hop from client > web service > SQL Server

非 Y 不嫁゛ 提交于 2019-12-01 06:21:40
My project invoves a user connecting from client to web service, and then web service to SQL Server. The web services and SQL Server are on separate machines. Because of security requirements, we cannot used mixed mode in SQL Server, only Windows authentication. We are experiencing the "double-hop" issue between web service and SQL Server. We are using NTLM authentication and do not want to configure Kerberos because of the overhead and learning curve. We also don't want to have the web service and SQL Server on the same machine. From what I understand, all of our requirements make this

How do I handle Negotiate in .NET?

放肆的年华 提交于 2019-12-01 05:35:18
问题 I'm trying to implement Negotiate (at least the Kerberos part) in a small web server. I've figured out how to get a client to send me a Kerberos Negotiate Authorization header. I've figured out how to decode that data (ASN.1). I cannot figure out how to turn this into a WindowsIdentity . I can get a general idea of how I might from KerberosReceiverSecurityToken, but I can't find anything like a NegotiateReceiverSecurityToken . I've been digging through lots of DLLs and I can't for the life of

Can't connect to the SSL server that use only ephemeral ciphersuites (The Local Security Authority cannot be contacted)

…衆ロ難τιáo~ 提交于 2019-11-29 08:08:19
I'm trying to connect to the test server started with openssl (this limited ciphersuite combination is intended): openssl s_server -accept 443 -www -tls1_2 -cipher ECDHE:DHE:EDH -cert selfsignedcert.pem -key sskey.pem The code I use is similar to msdn's public static bool ValidateServerCertificate( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; } ... var client = new TcpClient(target, port); SslStream sslStream = new SslStream(client.GetStream(), false,ValidateServerCertificate,null); sslStream.AuthenticateAsClient(target, null,