runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Implement System.Net.Security on Unix

Open stephentoub opened this issue 11 years ago • 12 comments

stephentoub avatar Jul 24 '15 16:07 stephentoub

Pre-requisite to this issue is: dotnet/corefx#2492

SidharthNabar avatar Jul 24 '15 17:07 SidharthNabar

Targeting NegotiateStream work in RTM hence changing milestone to RTM

vijaykota avatar Oct 19 '15 09:10 vijaykota

Changing milestone to RC2 per WCF requirement. The missing piece in System.Net.Security is NegotiateStream and the following work may help in implementation:

  1. PAL design for NegotiateStream: Pending work for RC2:
    1. Scrub the code moved from TFS
    2. Replace Interop.PlaceHolder.cs with actual Interop code of libgssapi_krb5 and libheimntlm
    3. Fallback logic to use NTLM credentials if GSSAPI fails. Current logic of checking status from gss_acquire_cred is not working.
    4. Revisit the Dispose calls in ReleaseHandle methods
  2. Interop code for libgssapi Pendng work for RC2:
    1. Testing with Windows client and Unix server (for RC2, it may turn out that only Unix client is needed)
    2. Testing on OSX. If the libgssapi_krb5 on OSX turns out to be Heimdal version (unlike MIT in case of Ubuntu), the APIs would need some tweaks. It would make sense then to switch to libgssapi.so on Ubuntu as well
    3. Revisit the Dispose calls in ReleaseHandle methods
  3. Interop code for libheimntlm (only the Interop\libheimntlm\* files are needed). Pending work for RC2:
    1. Shimming for libheimntlm APIs and some libcrypto APIs
    2. Moving SafeNtlm*Handles to Microsoft.Win32.SafeHandles namespace
    3. Testing on OSX
    4. Revisit the Dispose calls in ReleaseHandle methods

Pending NegotiateStream work beyond v1: see dotnet/corefx#3717 and dotnet/corefx#3718

vijaykota avatar Nov 19 '15 08:11 vijaykota

Changing milestone To Future till the Windows implementation of NegotiateStream is available.

vijaykota avatar Dec 11 '15 04:12 vijaykota

Windows implementation is checked-in via dotnet/corefx#5156 So targeting the xplat work for v1 RTM.

vijaykota avatar Jan 11 '16 04:01 vijaykota

tagging as blocking-release since this is a required feature

joshfree avatar Jan 11 '16 18:01 joshfree

The v1 support will be complete once PR# 6905 is merged to master. There are individual issues to track specific limitations in the libraries used by xplat implementation.

vijaykota avatar Mar 29 '16 05:03 vijaykota

@shrutigarg any update?

joshfree avatar Apr 08 '16 21:04 joshfree

@joshfree PR# 6905 is done and opened a pull request to merge into master. PR dotnet/corefx#7647 In parallel we are working on the issues too and getting them merged into the master.

shrutigarg avatar Apr 11 '16 14:04 shrutigarg

NTLM implementation is done and merged . Nothing is left now in client side implementation.

shrutigarg avatar Apr 25 '16 08:04 shrutigarg

NTLM implementation is done and merged . Nothing is left now in client side implementation.

What's left then? Can this issue be closed?

stephentoub avatar May 01 '16 20:05 stephentoub

Client side part is done .But I am unsure if this is to track server implementation too? If no , we can close it.

shrutigarg avatar May 02 '16 06:05 shrutigarg