Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Mono to SQL Server using integrated security no longer works on iOS #9028
We used to be able to connect to an SQL Server using integrated security by specifying the username and password in the connection string. It is no longer working on mono 5.10.0
I know there are no security benefits to use integrated security on a Unix platform as it is supposed to be password-less but some of my app users were using this feature and are now left unable to connect to their SQL server. Has the support been dropped?
Steps to Reproduce
Throws an Exception.
Connects just like with Mono 5.8.1 or maybe its just not supported anymore?
On which platforms did you notice this
iOS, (macOS, android) also have the same issue.
We moved to .NET Core sources for System.Data but unfortunately the Integrated Security for non-windows platforms requires
How far did you get? (It’s hard to tell from the PR if everything that needs to be there is.) From: Egor Bogatov <firstname.lastname@example.org> Reply-To: mono/mono <email@example.com> Date: Tuesday, June 5, 2018 at 16:35 To: mono/mono <firstname.lastname@example.org> Cc: Subscribed <email@example.com> Subject: Re: [mono/mono] Mono to SQL Server using integrated security no longer works on iOS (#9028) We moved to .NET Core sources for System.Data but unfortunately the Integrated Security for non-windows platforms requires System.Net.Security.Native with pal_gssapi (krb5) ported to mono. (I tried to do it a while ago - https://github.com/mono/mono/pull/6806/files) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#9028 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAS2-sK_OhozikVYF4FmKWNYQv-uT-W7ks5t5uuSgaJpZM4UaxXM>.
PAL_gssapi.c was converted to C recently in corefx but since our fork is not up to date I copied `PAL_gssapi.c` and `PAL_gssapi.h` into mono/metadata (I guess I should just cherry-pick those files to our fork). For System.Data it will allow users to connect to sql servers using SSPI (Security Support Provider Interface). See #9028 and #9751 on macOS (and iOS) it uses built-in GSS.framework. on Linux it requires an additional package (`krb`) to be installed (see .NET Core prerequisites, e.g. https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x#ubuntu). Unfortunately it's not installed on our CI yet.
@marek-safar Any progress on this? If so which version of Mono contains the fix? With Mono 220.127.116.11 I'm getting this error:
Not exactly the same error as previously, but not much of an improvement.