Questions tagged [sspi]

Use for questions having to do with the Security Support Provider Interface (SSPI) API.

The Security Support Provider Interface () is a Microsoft Windows API used to perform security-related operations such as authentication. It is implemented as a a dynamic-link library (DLL) supplied with the operating system. SSPI is the means by which the operating system loads SSPs (Security Support Providers), such as Kerberos and NTLM, when the system boots. The SSPI is the implementation of the Generic Security Service API () in Windows.

This article, while dated, is a good primer on : Logon and Authentication Technologies

214 questions
1
vote
2 answers

Unresolved external symbol CompleteAuthToken referenced

While porting a desktop application to windows mobile I've reached the following error: Error LNK2019: unresolved external symbol CompleteAuthToken referenced in function Reading MSDN it tell me that CompleteAuthToken is supported on Windows…
Ismael
  • 2,995
  • 29
  • 45
1
vote
0 answers

PowerShell Invoke-RestMethod cmdlet failing to send second authentication challenge?

When using PowerShell's Invoke-RestMethod to a service that uses Windows Authentication, I'm getting a "401.2 Not Authorized" Exception, but I've confirmed via $currentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name that I'm…
John
  • 921
  • 1
  • 9
  • 24
1
vote
0 answers

The target principal name is incorrect. Cannot generate SSPI context

I have a small home network of pc's all running Windows 10. None of the PC's have been or are in a domain. One (an intel NUC) runs Sql Server and my Surface 3 has Visual Studio. I use my Microsoft login for both. This setup has been running fine for…
pkepsom
  • 11
  • 1
1
vote
0 answers

The specified principle is not known in the authentication system

I have a C# client based on SSPI and Java server based on GSSAPI. The flow communication flow is as below. Client creates TGT Client passes TGT to server Server uses the TGT and generates server token Server passes the server token to…
Hasanthi
  • 1,251
  • 3
  • 14
  • 30
1
vote
1 answer

Retrieve/create recordset from SQL Server data in Excel vba

I want to access / retrieve / create recordset from SQL Server in Excel vba. I tried following methods but they return an error. Code 1: Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Dim sConnString As String sConnString =…
curious K
  • 145
  • 5
  • 15
1
vote
2 answers

SChannel issue with Windows 10

I have an application that uses the System.Net.Security.SslStream class to make a secure connection to a server. On Windows 7 and Windows 8/8.1, this works fine. On Windows 10, the call to SslStream.AuthenticateAsClient throws an exception -…
Jeff
  • 41
  • 1
  • 4
1
vote
1 answer

chrome and firefox browsers not sending kerbros token in WWW-Authenticate header to Negotiate

I am working on SPNEGO authentication using windows SSPI, is there a way to change browser settings to send kerbros token ? I tried changing firefox settings in about:config to add trusted uri but it didn't help.
sunny
  • 158
  • 1
  • 2
  • 13
1
vote
1 answer

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

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…
J. M. Becker
  • 2,755
  • 30
  • 32
1
vote
1 answer

SChannel, SEC_E_ALGORITHM_MISMATCH (0x80090331)

Days of troubleshooting on this one, googling solutions & re-reading Microsoft documentation on the needed functions. Changing variables, retrying again and again. Help is very thoroughly appreciated, I'm sure it's not just me running into this. I…
karezza
  • 586
  • 5
  • 13
1
vote
1 answer

SSPI from Windows XP Mode to Windows 7 SQL Server

I currently have to maintain some legacy code in Visual Studio 2003 and .NET 1.1. It uses integrated security to connect to a database. I am using WinXP mode in Windows 7 for the VS2003 install. I have the SQL Server 2008 installed on the Windows…
Chuck Haines
  • 662
  • 1
  • 8
  • 16
1
vote
0 answers

Where can I find more info on decoding a SPNEGO / SSPI packet?

I am trying to gather some information from captured TDS (Tabular Data Stream) data packets. I am happy with the TDS format, but I am struggling a bit trying to find out how to interpret/decode some of the SSPI Data. (As it happens, they come from…
Steven_W
  • 848
  • 1
  • 7
  • 17
1
vote
2 answers

Common algorithm issue while trying to send an email using C#

I'm trying to send an email via my C# application, but every time i try to send the email, an error occurs, saying "A call to sspi failed", when i look at the inner exeption it says something like "The client and server cannot communicate, because…
dontknowathing
  • 93
  • 2
  • 11
1
vote
1 answer

SSPI always picks up NTLM

I have a windows7 connected to a windows2008-r2 domain. Each time I try a SSPI "Negociate" (C++), I fall back to NTLM. I do not understand why... DNS on DC are ok. Something to do I don't ?? If I run a klist I can see all the right, everything seems…
Stef
  • 3,691
  • 6
  • 43
  • 58
1
vote
1 answer

Visual Studio fails to link mod_spnego to SSPI

I am trying to compile mod_spnego (http://sourceforge.net/projects/modgssapache/) with SSPI support in Visual C++ 2008 Express Edition. I have managed to get the compiling itself work fine, but now I am stuck at some errors that the linker prints…
user269667
  • 461
  • 1
  • 4
  • 10
1
vote
1 answer

Using SSPI, how should one send a Kerberos token to a GSSAPI enabled HTTP proxy server?

I have a simple client socket application that I want to access an website with. In order to access the Internet, my client must go through a HTTP proxy server (I'm using Microsoft Forefront Threat Management Gateway). The proxy server requires…
charunnera
  • 357
  • 4
  • 16