sspi

Compilable C++ code to implement a secure SLL/TLS client using MS SSPI

萝らか妹 提交于 2019-11-29 01:49:03
问题 As described here http://www.ddj.com/cpp/184401688 I do not have time to write this from scratch. Asked and not answered https://stackoverflow.com/questions/434961/implementing-ssl THE QUESTION IS: I am looking for some compilable working source code that implements MS SSPI (as alluded to in the thread above), procedural not OOP preferred. I have looked at the code projects sample here: http://www.codeproject.com/KB/IP/sslclasses.aspx But this is C# OOP. Converting this to C++ code is not

A call to SSPI failed, see inner exception - The Local Security Authority cannot be contacted

和自甴很熟 提交于 2019-11-28 20:30:30
I have an WPF app, which uses SSLStream to connect to server and send/receive some messages. My code is largerly based on this example (SslTcpClient): https://msdn.microsoft.com/en-us/library/system.net.security.sslstream(v=vs.110).aspx . This worked fine for months. However, after getting this windows update (Cumulative Update for Windows 10 version 1511 and Windows Server 2016 Technical Preview 4: June 14, 2016 - https://support.microsoft.com/en-us/kb/3163018 ). My app started to report this exception: System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner

support kerberos constrained delegation using SSPI for multiprocess

梦想的初衷 提交于 2019-11-28 14:34:54
I need to support Kerberos constrained delegation for our C++ HTTP server product on Windows using SSPI. For a single process server, the follow workflow can be used and I have a working prototype. 1) Call AcquireCredentialsHandle 2) Call AcceptSecurityContext 3) Call ImpersonateSecurityContext 4) Do delegation 5) Call RevertSecurityContext However, the C++ HTTP server has a master process and a worker process. Both processes run on the same machine and use the same service account, and each client request can come from a different user. The master process can handle SPNEGO and Kerberos

How to get Service Token from Kerberos using SSPI

点点圈 提交于 2019-11-28 10:25:18
Objective: I am trying to build Proof Of Concept client app to implement Single Sign On by using SSPI. I am new to C# and I am getting confused. What I know and have done so far: All users are part of Active Directory domain, so I know Kerberos is being used for authentication during login. All I need to do at this point is to get service token from Kerberos so I can pass it to the service resource instead of username and password (correct me if I am wrong). I have been provided Service Principle Name (SPN) and password that has been registered with Kerberos for the service. I was hoping not

SSPI Connection in .Net 2.0 Web Service

夙愿已清 提交于 2019-11-28 10:22:34
问题 I'm trying to test a .Net 2.0 Web Service I created in C#. One of our servers is on windows 2000 and can currently only support .Net 2.0 . I can test it local to my machine and it works fine but when I move it to the target server for production it produces an error. I want it to use Windows authentication, and have it defined as such in the web.config The error I receive is as follows: System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL

How to use Python requests to perform NTLM SSPI authentication?

时光怂恿深爱的人放手 提交于 2019-11-28 06:48:14
问题 My goal is to authenticate my client that uses the requests library (2.11.1) in Python 3.5.2 through NTLM with SSPI so that the user does not have to manually enter her domain credentials (used to login to the PC). I have found the following possibilities, but none work for me: HttpNtlmSspiAuth provokes an exception in requests: import requests from requests_ntlm import HttpNtlmAuth, HttpNtlmSspiAuth requests.get(site_url, auth=HttpNtlmSspiAuth()) requests-sspi-ntlm always gets a 401: import

Client-server authentication - using SSPI?

浪尽此生 提交于 2019-11-28 05:21:14
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 and password. I certainly don't want to be responsible for securely handling passwords. I only need the user to prove to me that they are who they say they are, and then my server can go ahead and grant/deny commands as it pleases. My users are part of a domain, and so I want to be able to use the logon credentials they created when they logged in. I'm not using any sort of web services, nor do I

NTLM proxy without password?

天大地大妈咪最大 提交于 2019-11-28 03:15:58
I work on a corporate windows network (which I log in to) with a HTTP proxy. When I use Internet Explorer it magically uses the proxy without me needing to type in my password. Certain other programs seem to manage this too, like JavaWebStart has a "use browser settings" option. However when I use scripts/programs like curl or wget to fetch stuff from http, or do it within my Java code I seem to need to have my password stored somewhere, which obviously isn't best for security. How can I get the password-less access that internet explorer has in a programmatic way? I'm arguing this is a stack

NTLM proxy without password?

我是研究僧i 提交于 2019-11-27 05:05:44
问题 I work on a corporate windows network (which I log in to) with a HTTP proxy. When I use Internet Explorer it magically uses the proxy without me needing to type in my password. Certain other programs seem to manage this too, like JavaWebStart has a "use browser settings" option. However when I use scripts/programs like curl or wget to fetch stuff from http, or do it within my Java code I seem to need to have my password stored somewhere, which obviously isn't best for security. How can I get

How to get Service Token from Kerberos using SSPI

巧了我就是萌 提交于 2019-11-27 03:37:14
问题 Objective: I am trying to build Proof Of Concept client app to implement Single Sign On by using SSPI. I am new to C# and I am getting confused. What I know and have done so far: All users are part of Active Directory domain, so I know Kerberos is being used for authentication during login. All I need to do at this point is to get service token from Kerberos so I can pass it to the service resource instead of username and password (correct me if I am wrong). I have been provided Service