From b2dff4a9ad9839b1ff5958feaca156ed41e5526f Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Thu, 27 Mar 2025 08:15:14 -0500 Subject: [PATCH 1/2] Don't expose TrustedCertificatesDirectory() and StartNewTlsSessionContext() to NetFx --- .../ref/System.DirectoryServices.Protocols.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs b/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs index 126be30b3ddb26..49ff2a1891cee0 100644 --- a/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs +++ b/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs @@ -382,8 +382,10 @@ public partial class LdapSessionOptions internal LdapSessionOptions() { } public bool AutoReconnect { get { throw null; } set { } } public string DomainName { get { throw null; } set { } } +#if NET [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")] public string TrustedCertificatesDirectory { get { throw null; } set { } } +#endif public string HostName { get { throw null; } set { } } public bool HostReachable { get { throw null; } } public System.DirectoryServices.Protocols.LocatorFlags LocatorFlag { get { throw null; } set { } } @@ -404,8 +406,10 @@ internal LdapSessionOptions() { } public bool Signing { get { throw null; } set { } } public System.DirectoryServices.Protocols.SecurityPackageContextConnectionInformation SslInformation { get { throw null; } } public int SspiFlag { get { throw null; } set { } } +#if NET [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")] public void StartNewTlsSessionContext() { } +#endif public bool TcpKeepAlive { get { throw null; } set { } } public System.DirectoryServices.Protocols.VerifyServerCertificateCallback VerifyServerCertificate { get { throw null; } set { } } public void FastConcurrentBind() { } From a261dc3b9a2e92d2754c052c47a7f4fb9a2f1a1b Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Thu, 24 Apr 2025 14:20:54 -0500 Subject: [PATCH 2/2] Update ServicingVersion --- .../src/System.DirectoryServices.Protocols.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj b/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj index 14030b952474f2..eba2fe5b83252c 100644 --- a/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj +++ b/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj @@ -4,8 +4,8 @@ true true true - false - 1 + true + 2 true true Provides the methods defined in the Lightweight Directory Access Protocol (LDAP) version 3 (V3) and Directory Services Markup Language (DSML) version 2.0 (V2) standards.