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
0
votes
1 answer

DecryptMessage (Schannel). Dealing with empty output buffers

I'm trying to use Schannel SSPI to send/receive data over SSL connection, using sockets. I have some questions on DecryptMessage() 1) MSDN says that sometimes the application will receive data from the remote party, then successfully decrypt it…
CITBL
  • 1,587
  • 3
  • 21
  • 36
0
votes
1 answer

Can not Generate SSPI context in SQL Server, Windows 10

I'm creating a C# application which accesses a SQL Server database on another PC in the local network. I have Windows 7 running on my PC and have SQL Server installed, and Windows 10 running on the remote PC from where I am accessing the database. I…
Delicate Hiba
  • 63
  • 1
  • 5
  • 13
0
votes
1 answer

Invalid Memory Access on QueryContextAttributes using JNA

I am attempting to use JNA to invoke the QueryContextAttributes function in the Secur32.dll on Windows. I am unable to get the invocation correct for the SECPKG_ATTR_SIZES call. I have an implementation working for SECPKG_ATTR_NAMES and…
KevinO
  • 4,303
  • 4
  • 27
  • 36
0
votes
1 answer

ODBC SSPI connection fails when username is added

I receive an exception anytime I put a value in for uid= in connection string for an Odbc PostgreSQL connection using Windows Authentication (SSPI). Error: Connection problem: System.InvalidOperationException: The connection was not closed. The…
Branden Huggins
  • 695
  • 7
  • 8
0
votes
1 answer

After resetting user's password in Active Directory using C#, both old and new passwords are working

Below is the code which is being used to reset the password. I want to stop this behavior. Only new password should work. user should not be able to log in with old password. using (var search= new DirectorySearcher(dir)) …
0
votes
1 answer

smtp email send request fails sometimes

I am using below code in c#, string Subject = "test12"; MailMessage mail = new MailMessage(); mail.To.Add(item.ToString()); mail.From = new MailAddress(EmailUserName); mail.Subject = Subject; mail.Body = PopulateBody(); …
WebAshlar
  • 23
  • 6
0
votes
1 answer

pyodbc error when run inside tmux

In my python code, I am using pyodbc to connect to my sql server. all the sql settings are correct, and I can run my code in a linux terminal using python main.py The issue is that when I run the same file inside tmux, I get errors about…
Amin
  • 1,883
  • 4
  • 17
  • 22
0
votes
1 answer

Access CVS through Apache service using SSPI

I'm running an Apache server (v2.2.10) with mod_python, Python 2.5 and Django. I have a small web app that will show the current projects we have in CVS and allow users to make a build of the different projects (the build checks out the project,…
Alex Jillard
  • 2,792
  • 2
  • 19
  • 20
0
votes
1 answer

How to authenticate with NTLM with parameters (via HTTP)?

I'm using InitializeSecurityContext function to produce Type 1 and Type 3 messages for NTLM authentication in HTTP. Everything works fine when I'm receiving default header: WWW-Authenticate: NTLM But, when I receive header like: WWW-Authenticate:…
krzynek91
  • 140
  • 10
0
votes
1 answer

How to get client user name using established GSS API context

I'm implementing Windows -> Linux transparent authentication using Kerberos. On Windows side I use SSPI. And I successfully establish context between Windows client and Windows server, retrieving client's user name like that: SecPkgContext_Names…
Viktor
  • 392
  • 2
  • 8
0
votes
1 answer

Authenticating using SSPI, KERBEROS, SPN, & 127.0.0.1

I have my client/server application working & authenticating the client via KERBEROS on a Windows system using SSPI. I had to register an SPN to make this work and everything works if I use a the FQDN, but, it takes about 4 seconds. The connection…
karezza
  • 586
  • 5
  • 13
0
votes
0 answers

WPF windows authentication for SQL connection

I have a windows form solution which I have to implement to WPF browser application. All the code does is it queries an sql server based on a parameter given in a textbox. string conString= @"Data Source = SQLserver; Initial Catalog = database;…
fishmong3r
  • 1,414
  • 4
  • 24
  • 51
0
votes
1 answer

how do i connect to SQL server in SQL Server Mgmt Studio with SSPI Integrated Security

i have an asp.net web app that has this in the web.config file in the project server=[server],15001;Integrated Security=SSPI;Database=DB_NAME how do i connect to this database from Sql server mgmt studio since there is not use or password in the…
leora
  • 188,729
  • 360
  • 878
  • 1,366
0
votes
1 answer

SEC_WINNT_AUTH_IDENTITY creation (SSPI)

i'm trying to create an SEC_WINNT_AUTH_IDENTITY to use into a call to AcquireCredentialsHandle in order to get credentials for this identity. However i struggle creating the Authenfication date. Here is the code used to create the struct : #define…
0
votes
1 answer

Dysfunctional Clone

A Database Server has been cloned. The Operating System is "Microsoft Windows XP Professional Version 2002 Service Pack 3". The Query Environment is "Microsoft SQL Server 2008 Management Studio 10.0.4000.0". After cloning, the following behaviour…
user4524350