http://bugs.winehq.org/show_bug.cgi?id=32076
Bug #: 32076 Summary: .NET SqlConnection with windows authentication fails to connect: cannot initialize SSPI package Product: Wine Version: 1.5.16 Platform: x86 URL: http://www.microsoft.com/en-us/download/details.aspx?i d=8961 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: djelinski1@gmail.com Classification: Unclassified
affects any .NET application that tries to connect to SQL server using windows authentication (e.g. MS SQL Management studio)
Console log contains these 3 lines that are absent when using SQL authentication: err:ntdll:NtQueryInformationToken Unhandled Token Information class 11! fixme:secur32:nego_AcquireCredentialsHandleW forwarding to NTLM fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
Windows authentication does not work with wine mono, only with native .NET.
winetricks dotnet20 win7 is needed to install SQL management studio. SQL server is not needed to reproduce this bug.
http://bugs.winehq.org/show_bug.cgi?id=32076
Daniel Jelinski djelinski1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download
http://bugs.winehq.org/show_bug.cgi?id=32076
--- Comment #1 from Daniel Jelinski djelinski1@gmail.com 2013-05-06 15:30:12 CDT --- Still present in wine-1.5.29-102-g6cc0e70. Making ntlm_AcquireCredentialsHandleW use the same code path for SECPKG_CRED_BOTH as for SECPKG_CRED_OUTBOUND results in a different error message: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)
https://bugs.winehq.org/show_bug.cgi?id=32076
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|.NET SqlConnection with |Microsoft SQL Server |windows authentication |Management Studio Express |fails to connect: cannot |(SSMSE) v1.x: .NET |initialize SSPI package |SqlConnection with windows | |authentication fails to | |connect: cannot initialize | |SSPI package URL|http://www.microsoft.com/en |https://web.archive.org/web |-us/download/details.aspx?i |/20130719021548if_/http://d |d=8961 |ownload.microsoft.com/downl | |oad/a/6/c/a6c820bb-9043-4ef | |6-8a7b-a0cd327cf8c5/SQLServ | |er2005_SSMSEE.msi CC| |focht@gmx.net Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
please retest with recent Wine 6.x releases.
Adding stable link via Internet Archive:
https://web.archive.org/web/20130719021548if_/http://download.microsoft.com/...
$ sha1sum SQLServer2005_SSMSEE.msi a609e482188cdb4bbfae786c4aa8149af9944d29 SQLServer2005_SSMSEE.msi
$ du -sh SQLServer2005_SSMSEE.msi 39M SQLServer2005_SSMSEE.msi
Regards